r252601 - No longer creating the install-clang target for IDEs, as it was never meant for those.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 10 04:51:25 PST 2015


Author: aaronballman
Date: Tue Nov 10 06:51:25 2015
New Revision: 252601

URL: http://llvm.org/viewvc/llvm-project?rev=252601&view=rev
Log:
No longer creating the install-clang target for IDEs, as it was never meant for those.

Modified:
    cfe/trunk/tools/driver/CMakeLists.txt

Modified: cfe/trunk/tools/driver/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/CMakeLists.txt?rev=252601&r1=252600&r2=252601&view=diff
==============================================================================
--- cfe/trunk/tools/driver/CMakeLists.txt (original)
+++ cfe/trunk/tools/driver/CMakeLists.txt Tue Nov 10 06:51:25 2015
@@ -54,11 +54,14 @@ add_dependencies(clang clang-headers)
 install(TARGETS clang
   RUNTIME DESTINATION bin
   COMPONENT clang)
-add_custom_target(install-clang
-  DEPENDS clang
-  COMMAND "${CMAKE_COMMAND}"
-          -DCMAKE_INSTALL_COMPONENT=clang
-          -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
+
+if(NOT CMAKE_CONFIGURATION_TYPES)
+  add_custom_target(install-clang
+    DEPENDS clang
+    COMMAND "${CMAKE_COMMAND}"
+            -DCMAKE_INSTALL_COMPONENT=clang
+            -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
+endif()
 
 if(NOT CLANG_LINKS_TO_CREATE)
   set(CLANG_LINKS_TO_CREATE clang++ clang-cl)




More information about the cfe-commits mailing list