diff options
author | Shoaib Meenai <smeenai@fb.com> | 2019-02-15 15:59:02 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2019-02-15 15:59:02 +0000 |
commit | b4ff1abae264396f4634f2fc26395279081a86bb (patch) | |
tree | e8e932b862419c78139ed3bfe4b353b438a3368a | |
parent | 59ecdb0d8be4a84b38c3451812f6c55c10b1cc82 (diff) | |
download | bcm5719-llvm-b4ff1abae264396f4634f2fc26395279081a86bb.tar.gz bcm5719-llvm-b4ff1abae264396f4634f2fc26395279081a86bb.zip |
[clang] Create install targets for non-shared libraries
I don't see a reason for these to not have install targets created,
which in turn allows them to be bundled in distributions. This doesn't
affect the "install" target, since that just runs all CMake install
rules (and we were already creating install rules for these).
Differential Revision: https://reviews.llvm.org/D58268
llvm-svn: 354140
-rw-r--r-- | clang/cmake/modules/AddClang.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake index 7e22f16f365..7fcf93f1a34 100644 --- a/clang/cmake/modules/AddClang.cmake +++ b/clang/cmake/modules/AddClang.cmake @@ -103,7 +103,7 @@ macro(add_clang_library name) ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX} RUNTIME DESTINATION bin) - if (${ARG_SHARED} AND NOT CMAKE_CONFIGURATION_TYPES) + if (NOT CMAKE_CONFIGURATION_TYPES) add_llvm_install_targets(install-${name} DEPENDS ${name} COMPONENT ${name}) |