cmake: Only export targets in the standalone build
Trying to fix bots that didn't like the fact that I exported targets that depended on LLVM without exporting targets from LLVM. llvm-svn: 221415
This commit is contained in:
parent
80118548d2
commit
7bfd8bccb5
|
@ -480,6 +480,7 @@ endif()
|
||||||
set(CLANG_ORDER_FILE "" CACHE FILEPATH
|
set(CLANG_ORDER_FILE "" CACHE FILEPATH
|
||||||
"Order file to use when compiling clang in order to improve startup time.")
|
"Order file to use when compiling clang in order to improve startup time.")
|
||||||
|
|
||||||
|
if (CLANG_BUILT_STANDALONE)
|
||||||
# Generate a list of CMake library targets so that other CMake projects can
|
# Generate a list of CMake library targets so that other CMake projects can
|
||||||
# link against them. LLVM calls its version of this file LLVMExports.cmake, but
|
# link against them. LLVM calls its version of this file LLVMExports.cmake, but
|
||||||
# the usual CMake convention seems to be ${Project}Targets.cmake.
|
# the usual CMake convention seems to be ${Project}Targets.cmake.
|
||||||
|
@ -501,3 +502,4 @@ configure_file(
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/ClangConfig.cmake
|
${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/ClangConfig.cmake
|
||||||
${CLANG_BINARY_DIR}/share/clang/cmake/ClangConfig.cmake
|
${CLANG_BINARY_DIR}/share/clang/cmake/ClangConfig.cmake
|
||||||
COPYONLY)
|
COPYONLY)
|
||||||
|
endif ()
|
||||||
|
|
Loading…
Reference in New Issue