Try to fix CMake clang++ creation on Windows

llvm-svn: 89336
This commit is contained in:
Douglas Gregor 2009-11-19 07:59:29 +00:00
parent 156d50c529
commit c3851cd0d8
1 changed files with 3 additions and 3 deletions

View File

@ -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}\")")