[cfe-commits] r89336 - /cfe/trunk/tools/driver/CMakeLists.txt

Douglas Gregor dgregor at apple.com
Wed Nov 18 23:59:29 PST 2009


Author: dgregor
Date: Thu Nov 19 01:59:29 2009
New Revision: 89336

URL: http://llvm.org/viewvc/llvm-project?rev=89336&view=rev
Log:
Try to fix CMake clang++ creation on Windows

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=89336&r1=89335&r2=89336&view=diff

==============================================================================
--- cfe/trunk/tools/driver/CMakeLists.txt (original)
+++ cfe/trunk/tools/driver/CMakeLists.txt Thu Nov 19 01:59:29 2009
@@ -18,12 +18,12 @@
 # Create the clang++ symlink in the build directory.
 add_custom_target(clang++ ALL
   ${CMAKE_COMMAND} -E create_symlink 
-    "${LLVM_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/clang"
-    "${LLVM_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/clang++"
+    "${LLVM_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/clang${CMAKE_EXECUTABLE_SUFFIX}"
+    "${LLVM_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/clang++${CMAKE_EXECUTABLE_SUFFIX}"
   DEPENDS clang)
 
 install(TARGETS clang
   RUNTIME DESTINATION bin)
 
 # Create the clang++ symlink at installation time.
-install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink \"${CMAKE_INSTALL_PREFIX}/bin/clang\" \"${CMAKE_INSTALL_PREFIX}/bin/clang++\")")
+install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink \"${CMAKE_INSTALL_PREFIX}/bin/clang${CMAKE_EXECUTABLE_SUFFIX}\" \"${CMAKE_INSTALL_PREFIX}/bin/clang++${CMAKE_EXECUTABLE_SUFFIX}\")")





More information about the cfe-commits mailing list