diff options
author | Brad King <brad.king@kitware.com> | 2008-07-03 19:46:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-07-03 19:46:37 (GMT) |
commit | e245d4ea114b61fb3243adc16e82e269ac15ed86 (patch) | |
tree | fa8d48caf9440d4b30777b60dd93b64d4f62951f /Tests | |
parent | f188d0e24191c35135a7b825594e053489b1e919 (diff) | |
download | CMake-e245d4ea114b61fb3243adc16e82e269ac15ed86.zip CMake-e245d4ea114b61fb3243adc16e82e269ac15ed86.tar.gz CMake-e245d4ea114b61fb3243adc16e82e269ac15ed86.tar.bz2 |
BUG: Replace non-bootstrap command with macro
- The GET_TEST_PROPERTY command does not exist during bootstrap.
- Instead of lots of conditionals, replace it with a macro.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index c262194..472e2b3 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -12,6 +12,15 @@ MACRO(ADD_TEST_MACRO NAME COMMAND) --test-command ${COMMAND}) ENDMACRO(ADD_TEST_MACRO) +# Support bootstrap builds. When CMake 2.6 is required we can switch +# to using the get_property command which is in bootstrap. Note that +# that command will return empty instead of NOTFOUND if the property +# is not set. +IF(NOT COMMAND GET_TEST_PROPERTY) + MACRO(GET_TEST_PROPERTY test prop var) + SET(${var} "") + ENDMACRO(GET_TEST_PROPERTY) +ENDIF(NOT COMMAND GET_TEST_PROPERTY) # Testing IF(BUILD_TESTING) |