diff options
author | Chris Bieneman <beanz@apple.com> | 2017-07-28 15:33:35 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2017-07-28 15:33:35 +0000 |
commit | a67644889415747d40d351db9d184fdaba464b42 (patch) | |
tree | bc878400a8e3c9a828bcdb79a39513b2e6bb4ac8 /cmake/modules | |
parent | c252763623e9c3739eb0e11519d04c629643f562 (diff) | |
download | llvm-a67644889415747d40d351db9d184fdaba464b42.tar.gz |
[CMake] NFC. Add intrinsics_gen target to CMake Exports
By creating a dummy of this target in LLVMConfig.cmake, projects that can build against out-of-tree LLVM can freely depend on the target without needing to have conditionals for if LLVM is in-tree or out-of-tree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/LLVMConfig.cmake.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/modules/LLVMConfig.cmake.in b/cmake/modules/LLVMConfig.cmake.in index 7a8eb367472..169fc9987be 100644 --- a/cmake/modules/LLVMConfig.cmake.in +++ b/cmake/modules/LLVMConfig.cmake.in @@ -79,5 +79,12 @@ if(NOT TARGET LLVMSupport) @llvm_config_include_buildtree_only_exports@ endif() +# By creating intrinsics_gen here, subprojects that depend on LLVM's +# tablegen-generated headers can always depend on this target whether building +# in-tree with LLVM or not. +if(NOT TARGET intrinsics_gen) + add_custom_target(intrinsics_gen) +endif() + set_property(GLOBAL PROPERTY LLVM_TARGETS_CONFIGURED On) include(${LLVM_CMAKE_DIR}/LLVM-Config.cmake) |