diff options
author | Brad King <brad.king@kitware.com> | 2014-03-26 19:07:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-26 19:09:56 (GMT) |
commit | 27b812132c4c47c810b96bd2a1a28e7fb502a62e (patch) | |
tree | e155721f82fe38f191e50bc64a408e3fcf1e23a0 /Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt | |
parent | 6373e08d439195557f77e8de7081252a5326f463 (diff) | |
download | CMake-27b812132c4c47c810b96bd2a1a28e7fb502a62e.zip CMake-27b812132c4c47c810b96bd2a1a28e7fb502a62e.tar.gz CMake-27b812132c4c47c810b96bd2a1a28e7fb502a62e.tar.bz2 |
Tests/CTestTestMemcheck: Help Xcode 2.x create output dirs
Add the PRE_BUILD step to all targets that need it so the output
directories get created no matter which target is built first.
Diffstat (limited to 'Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt')
-rw-r--r-- | Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt b/Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt index 47d6a24..3a45bfe 100644 --- a/Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt +++ b/Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt @@ -11,12 +11,12 @@ configure_file( foreach(_pseudo IN ITEMS valgrind purify BC) add_executable(pseudonl_${_pseudo} "${CMAKE_CURRENT_BINARY_DIR}/ret0.c") set_target_properties(pseudonl_${_pseudo} PROPERTIES OUTPUT_NAME ${_pseudo}) -endforeach() -# Xcode 2.x forgets to create the output directory before linking -# the individual architectures. -if(CMAKE_OSX_ARCHITECTURES AND XCODE AND NOT "${XCODE_VERSION}" MATCHES "^[^12]") - add_custom_command(TARGET pseudonl_valgrind + # Xcode 2.x forgets to create the output directory before linking + # the individual architectures. + if(CMAKE_OSX_ARCHITECTURES AND XCODE AND NOT "${XCODE_VERSION}" MATCHES "^[^12]") + add_custom_command(TARGET pseudonl_${_pseudo} PRE_BUILD COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CFG_INTDIR}" ) -endif() + endif() +endforeach() |