From: Argyrios Kyrtzidis Date: Thu, 18 Apr 2013 18:54:03 +0000 (+0000) Subject: [CMake] Create the directory before creating the link to the clang headers. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d333e7be00bd8bceac0989d7877589d85ceae7da;p=clang [CMake] Create the directory before creating the link to the clang headers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179782 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/CMakeLists.txt b/lib/Headers/CMakeLists.txt index 5e727a7b2e..8be33b7b4a 100644 --- a/lib/Headers/CMakeLists.txt +++ b/lib/Headers/CMakeLists.txt @@ -98,6 +98,7 @@ 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") endif() endif ()