Based on a patch by Ryuta Suzuki!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116695
91177308-0d34-0410-b5e6-
96231b3b80d8
endif()
set(bindir "${CLANGXX_DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/")
-set(clang "${bindir}clang${CMAKE_EXECUTABLE_SUFFIX}")
-set(clangxx "${bindir}clang++${CMAKE_EXECUTABLE_SUFFIX}")
+set(clang "clang${CMAKE_EXECUTABLE_SUFFIX}")
+set(clangxx "clang++${CMAKE_EXECUTABLE_SUFFIX}")
message("Creating clang++ executable based on ${clang}")
-execute_process(COMMAND "${CMAKE_COMMAND}" -E ${CLANGXX_LINK_OR_COPY} "${clang}" "${clangxx}")
+execute_process(
+ COMMAND "${CMAKE_COMMAND}" -E ${CLANGXX_LINK_OR_COPY} "${clang}" "${clangxx}"
+ WORKING_DIRECTORY "${bindir}")