From: Aaron Ballman Date: Tue, 10 Nov 2015 12:51:25 +0000 (+0000) Subject: No longer creating the install-clang target for IDEs, as it was never meant for those. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d8878dccfaa32e89227a3db1089ec74908cb6da6;p=clang No longer creating the install-clang target for IDEs, as it was never meant for those. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252601 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/driver/CMakeLists.txt b/tools/driver/CMakeLists.txt index a57b22e0a2..fca9b61675 100644 --- a/tools/driver/CMakeLists.txt +++ b/tools/driver/CMakeLists.txt @@ -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)