From: Ted Kremenek Date: Tue, 27 Aug 2013 23:20:26 +0000 (+0000) Subject: Use CMAKE_RUNTIME_OUTPUT_DIRECTORY instead of LLVM_BINARY_DIR for installing Clang... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8970cf5a01c87c6a283d830b5f6f12757f330868;p=clang Use CMAKE_RUNTIME_OUTPUT_DIRECTORY instead of LLVM_BINARY_DIR for installing Clang headers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189414 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/CMakeLists.txt b/lib/Headers/CMakeLists.txt index 8be33b7b4a..0570990d66 100644 --- a/lib/Headers/CMakeLists.txt +++ b/lib/Headers/CMakeLists.txt @@ -44,13 +44,13 @@ set(files module.map ) -set(output_dir ${LLVM_BINARY_DIR}/lib/clang/${CLANG_VERSION}/include) +set(output_dir ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lib/clang/${CLANG_VERSION}/include) # If we are in an IDE that has a configuration directory, we need to # create a second copy of the headers so that 'clang' can find them if # it's run from the build directory. if(MSVC_IDE OR XCODE) - set(other_output_dir ${LLVM_BINARY_DIR}/bin/lib/clang/${CLANG_VERSION}/include) + set(other_output_dir ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/bin/lib/clang/${CLANG_VERSION}/include) endif() # Generate arm_neon.h @@ -98,8 +98,8 @@ set_target_properties(clang-headers PROPERTIES FOLDER "Misc") if (other_output_dir) if(UNIX) add_custom_command(TARGET clang-headers POST_BUILD - COMMAND ${CMAKE_COMMAND} -E make_directory "${LLVM_BINARY_DIR}/lib/${CMAKE_CFG_INTDIR}" - COMMAND ${CMAKE_COMMAND} -E create_symlink "${LLVM_BINARY_DIR}/bin/lib/clang" "${LLVM_BINARY_DIR}/lib/${CMAKE_CFG_INTDIR}/clang") + COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lib/${CMAKE_CFG_INTDIR}" + COMMAND ${CMAKE_COMMAND} -E create_symlink "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/bin/lib/clang" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/lib/${CMAKE_CFG_INTDIR}/clang") endif() endif ()