diff options
author | Brad King <brad.king@kitware.com> | 2013-03-13 18:09:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-03-13 18:09:43 (GMT) |
commit | dd8a06bd654e39d4ffba211431b75a8ad2ac0d6a (patch) | |
tree | 266d513979c0427859a1891aea924c7613aecbb2 /Tests | |
parent | a95968fec95bf5feacb81871b3a2e052c5364345 (diff) | |
download | CMake-dd8a06bd654e39d4ffba211431b75a8ad2ac0d6a.zip CMake-dd8a06bd654e39d4ffba211431b75a8ad2ac0d6a.tar.gz CMake-dd8a06bd654e39d4ffba211431b75a8ad2ac0d6a.tar.bz2 |
Configure Tests/CMakeTests only with BUILD_TESTING ON
Since commit e03f83f3 (ProcessorCount test: fix path to cmsysTestsCxx
executable, 2013-01-24) the directory references a target that is not
built when BUILD_TESTING is OFF. It makes no sense to add tests without
BUILD_TESTING anyway.
While at it, use add_subdirectory instead of subdirs to add CMakeTests.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 5982e8b..e07bb69 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -2442,6 +2442,6 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/ set_tests_properties(KWStyle PROPERTIES WORKING_DIRECTORY ${CMake_BINARY_DIR}/Utilities/KWStyle) endif() -endif() -subdirs(CMakeTests) + add_subdirectory(CMakeTests) +endif() |