[clang] Create install targets for non-shared libraries
authorShoaib Meenai <smeenai@fb.com>
Fri, 15 Feb 2019 15:59:02 +0000 (15:59 +0000)
committerShoaib Meenai <smeenai@fb.com>
Fri, 15 Feb 2019 15:59:02 +0000 (15:59 +0000)
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

clang/cmake/modules/AddClang.cmake

index 7e22f16..7fcf93f 100644 (file)
@@ -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})