[CMake] Create the directory before creating the link to the clang headers.

llvm-svn: 179782
This commit is contained in:
Argyrios Kyrtzidis 2013-04-18 18:54:03 +00:00
parent b86ea8a29f
commit 08dff958e9
1 changed files with 1 additions and 0 deletions

View File

@ -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 ()