diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-11-19 07:59:29 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-11-19 07:59:29 +0000 |
commit | 234e16229b1aa0e6e3ac4abd2070cf75ba64704e (patch) | |
tree | d723b0cb62de2ea4e2b0082cade152fe5fec2c95 | |
parent | a4494d83985542ee1e9f67954d104bd764c4b416 (diff) |
Try to fix CMake clang++ creation on Windows
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89336 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/driver/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/driver/CMakeLists.txt b/tools/driver/CMakeLists.txt index 1d5d08b6c2..1a9538013e 100644 --- a/tools/driver/CMakeLists.txt +++ b/tools/driver/CMakeLists.txt @@ -18,12 +18,12 @@ add_dependencies(clang clang-cc) # 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}\")") |