summaryrefslogtreecommitdiffstats
path: root/clang/cmake/modules
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2019-02-20 23:08:43 +0000
committerShoaib Meenai <smeenai@fb.com>2019-02-20 23:08:43 +0000
commitdefb5a383b298a786bac2759553be0c500cb660c (patch)
tree86c515ec7be5570f1e5932f46ec78638e43af420 /clang/cmake/modules
parent9aefd7f55411e9f9d03891a199b42e2801705f43 (diff)
downloadbcm5719-llvm-defb5a383b298a786bac2759553be0c500cb660c.tar.gz
bcm5719-llvm-defb5a383b298a786bac2759553be0c500cb660c.zip
[clang] Switch to LLVM_ENABLE_IDE
r344555 switched LLVM to guarding install targets with LLVM_ENABLE_IDE instead of CMAKE_CONFIGURATION_TYPES, which expresses the intent more directly and can be overridden by a user. Make the corresponding change in clang. LLVM_ENABLE_IDE is computed by HandleLLVMOptions, so it should be available for both standalone and integrated builds. Differential Revision: https://reviews.llvm.org/D58284 llvm-svn: 354525
Diffstat (limited to 'clang/cmake/modules')
-rw-r--r--clang/cmake/modules/AddClang.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
index 4c3f2d19f74..d225d2ecaa4 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 (NOT CMAKE_CONFIGURATION_TYPES)
+ if (NOT LLVM_ENABLE_IDE)
add_llvm_install_targets(install-${name}
DEPENDS ${name}
COMPONENT ${name})
@@ -147,7 +147,7 @@ macro(add_clang_tool name)
RUNTIME DESTINATION bin
COMPONENT ${name})
- if(NOT CMAKE_CONFIGURATION_TYPES)
+ if(NOT LLVM_ENABLE_IDE)
add_llvm_install_targets(install-${name}
DEPENDS ${name}
COMPONENT ${name})
OpenPOWER on IntegriCloud