forked from OSchip/llvm-project
Try to fix CMake clang++ creation on Windows
llvm-svn: 89336
This commit is contained in:
parent
156d50c529
commit
c3851cd0d8
|
@ -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}\")")
|
||||
|
|
Loading…
Reference in New Issue