Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Brad King
CMake
Commits
c53e8209
Commit
c53e8209
authored
Mar 27, 2014
by
Brad King
Committed by
Kitware Robot
Mar 27, 2014
Browse files
Merge topic 'fix-CTestTestMemcheck-xcode2-missing-dirs'
27b81213
Tests/CTestTestMemcheck: Help Xcode 2.x create output dirs
parents
e03ac807
27b81213
Changes
2
Hide whitespace changes
Inline
Side-by-side
Tests/CTestTestMemcheck/CMakeLists.txt
View file @
c53e8209
...
...
@@ -19,14 +19,6 @@ add_executable(pseudo_valgrind "${CMAKE_CURRENT_BINARY_DIR}/ret0.cxx")
set_target_properties
(
pseudo_valgrind PROPERTIES OUTPUT_NAME valgrind
)
target_link_libraries
(
pseudo_valgrind CMakeLib
)
# 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 pseudo_valgrind
PRE_BUILD COMMAND
${
CMAKE_COMMAND
}
-E make_directory
"
${
CMAKE_CFG_INTDIR
}
"
)
endif
()
add_executable
(
pseudo_purify
"
${
CMAKE_CURRENT_BINARY_DIR
}
/ret0.cxx"
)
set_target_properties
(
pseudo_purify PROPERTIES OUTPUT_NAME purify
)
target_link_libraries
(
pseudo_purify CMakeLib
)
...
...
@@ -196,3 +188,18 @@ set_tests_properties(CTestTestMemcheckDummyValgrindCustomOptions PROPERTIES
set_tests_properties
(
CTestTestMemcheckDummyValgrindTwoTargets PROPERTIES
PASS_REGULAR_EXPRESSION
"
\n
Memory check project
${
CTEST_ESCAPED_CMAKE_CURRENT_BINARY_DIR
}
/DummyValgrindTwoTargets
\n
.*
\n
*Start 1: RunCMake
\n
(.*
\n
)?Memory check command: .*
\"
--log-file=
${
CTEST_ESCAPED_CMAKE_CURRENT_BINARY_DIR
}
/DummyValgrindTwoTargets/Testing/Temporary/MemoryChecker.1.log
\"
\"
-q
\"
.*
\n
*Start 2: RunCMakeAgain
\n
(.*
\n
)?Memory check command: .*
\"
--log-file=
${
CTEST_ESCAPED_CMAKE_CURRENT_BINARY_DIR
}
/DummyValgrindTwoTargets/Testing/Temporary/MemoryChecker.2.log
\"
\"
-q
\"
.*
\n
"
)
# 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]"
)
foreach
(
t
memcheck_fail
pseudo_BC
pseudo_purify
pseudo_valgrind
)
add_custom_command
(
TARGET
${
t
}
PRE_BUILD COMMAND
${
CMAKE_COMMAND
}
-E make_directory
"
${
CMAKE_CFG_INTDIR
}
"
)
endforeach
()
endif
()
Tests/CTestTestMemcheck/NoLogDummyChecker/CMakeLists.txt
View file @
c53e8209
...
...
@@ -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
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment