aaron.ballman created this revision.
aaron.ballman added a reviewer: beanz.
aaron.ballman added a subscriber: cfe-commits.
When generating an MSVC solution from CMake, it creates a clang-install
project. We do not have any *-install targets as part of MSVC, so this seems
out of place (not to mention, a bit strange). This patch disables creation of
the clang-install project when making an MSVC solution.
http://reviews.llvm.org/D14502
Files:
tools/driver/CMakeLists.txt
Index: tools/driver/CMakeLists.txt
===================================================================
--- tools/driver/CMakeLists.txt
+++ tools/driver/CMakeLists.txt
@@ -54,12 +54,15 @@
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 MSVC)
+ 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)
Index: tools/driver/CMakeLists.txt
===================================================================
--- tools/driver/CMakeLists.txt
+++ tools/driver/CMakeLists.txt
@@ -54,12 +54,15 @@
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 MSVC)
+ 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)
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits