llvm.org GIT mirror llvm / 41dfa19
[CMake] Add custom target to create build directory CMake does a poor job in tracking dependencies on files and directories directly. Create custom target similar to the configuration step. On my system, this avoids the reconfiguration on each build. Differential Revision: https://reviews.llvm.org/D39298 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317694 91177308-0d34-0410-b5e6-96231b3b80d8 Jonas Hahnfeld 1 year, 11 months ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1515 COMMAND ${CMAKE_COMMAND} -E make_directory ${LLVM_${target_name}_BUILD}
1616 COMMENT "Creating ${LLVM_${target_name}_BUILD}...")
1717
18 add_custom_target(CREATE_LLVM_${target_name}
19 DEPENDS ${LLVM_${target_name}_BUILD})
20
1821 add_custom_command(OUTPUT ${LLVM_${target_name}_BUILD}/CMakeCache.txt
1922 COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}"
2023 ${CROSS_TOOLCHAIN_FLAGS_${target_name}} ${CMAKE_SOURCE_DIR}
2124 -DLLVM_TARGET_IS_CROSSCOMPILE_HOST=TRUE
2225 WORKING_DIRECTORY ${LLVM_${target_name}_BUILD}
23 DEPENDS ${LLVM_${target_name}_BUILD}
26 DEPENDS CREATE_LLVM_${target_name}
2427 COMMENT "Configuring ${target_name} LLVM...")
2528
2629 add_custom_target(CONFIGURE_LLVM_${target_name}