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

Argyrios Kyrtzidis akyrtzi at gmail.com
Thu Apr 18 11:54:03 PDT 2013


Author: akirtzidis
Date: Thu Apr 18 13:54:03 2013
New Revision: 179782

URL: http://llvm.org/viewvc/llvm-project?rev=179782&view=rev
Log:
[CMake] Create the directory before creating the link to the clang headers.

Modified:
    cfe/trunk/lib/Headers/CMakeLists.txt

Modified: cfe/trunk/lib/Headers/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/CMakeLists.txt?rev=179782&r1=179781&r2=179782&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/CMakeLists.txt (original)
+++ cfe/trunk/lib/Headers/CMakeLists.txt Thu Apr 18 13:54:03 2013
@@ -98,6 +98,7 @@ set_target_properties(clang-headers PROP
 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 ()





More information about the cfe-commits mailing list