summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2019-02-15 15:59:02 +0000
committerShoaib Meenai <smeenai@fb.com>2019-02-15 15:59:02 +0000
commit5cf987e5668e6f6004c0bb773b7bcc96daeffc79 (patch)
treec4746bbb4e41bc86874edf1f37a8d1ba20b00412 /cmake
parente0d0812514be02832e2eead1eedfc0b86318be01 (diff)
downloadclang-5cf987e5668e6f6004c0bb773b7bcc96daeffc79.tar.gz
[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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/AddClang.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/AddClang.cmake b/cmake/modules/AddClang.cmake
index 7e22f16f36..7fcf93f1a3 100644
--- a/cmake/modules/AddClang.cmake
+++ b/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})