[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.57 1.58
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Jul 3 15:46:40 EDT 2008
Update of /cvsroot/CMake/CMake/Tests
In directory public:/mounts/ram/cvs-serv20155/Tests
Modified Files:
CMakeLists.txt
Log Message:
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.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CMakeLists.txt,v
retrieving revision 1.57
retrieving revision 1.58
diff -C 2 -d -r1.57 -r1.58
*** CMakeLists.txt 3 Jul 2008 18:38:57 -0000 1.57
--- CMakeLists.txt 3 Jul 2008 19:46:37 -0000 1.58
***************
*** 13,16 ****
--- 13,25 ----
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
More information about the Cmake-commits
mailing list