[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.9 1.10
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Jul 29 08:39:57 EDT 2009
Update of /cvsroot/CMake/CMake/Tests/Properties
In directory public:/mounts/ram/cvs-serv10717/Tests/Properties
Modified Files:
CMakeLists.txt
Log Message:
Test cache entry property "STRINGS"
The STRINGS property tells cmake-gui to create a drop-down selection
list. This teaches the Properties test to set and verify its value.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Properties/CMakeLists.txt,v
retrieving revision 1.9
retrieving revision 1.10
diff -C 2 -d -r1.9 -r1.10
*** CMakeLists.txt 10 Mar 2009 15:10:59 -0000 1.9
--- CMakeLists.txt 29 Jul 2009 12:39:50 -0000 1.10
***************
*** 101,105 ****
# test CACHE properties
macro(check_cache_props)
! foreach(prop VALUE TYPE HELPSTRING ADVANCED)
get_property(result CACHE SOME_ENTRY PROPERTY ${prop})
if(NOT "x${result}" STREQUAL "x${expect_${prop}}")
--- 101,105 ----
# test CACHE properties
macro(check_cache_props)
! foreach(prop VALUE TYPE HELPSTRING ADVANCED STRINGS)
get_property(result CACHE SOME_ENTRY PROPERTY ${prop})
if(NOT "x${result}" STREQUAL "x${expect_${prop}}")
***************
*** 112,117 ****
--- 112,119 ----
set(expect_HELPSTRING "sample cache entry")
set(expect_ADVANCED 0)
+ set(expect_STRINGS "")
set(SOME_ENTRY "${expect_VALUE}" CACHE ${expect_TYPE} "${expect_HELPSTRING}" FORCE)
mark_as_advanced(CLEAR SOME_ENTRY)
+ set_property(CACHE SOME_ENTRY PROPERTY STRINGS "")
check_cache_props()
set(expect_VALUE "Some string")
***************
*** 119,125 ****
--- 121,129 ----
set(expect_HELPSTRING "sample cache entry help")
set(expect_ADVANCED 1)
+ set(expect_STRINGS "Some string;Some other string;Some third string")
set_property(CACHE SOME_ENTRY PROPERTY TYPE "${expect_TYPE}")
set_property(CACHE SOME_ENTRY PROPERTY HELPSTRING "${expect_HELPSTRING}")
set_property(CACHE SOME_ENTRY PROPERTY VALUE "${expect_VALUE}")
set_property(CACHE SOME_ENTRY PROPERTY ADVANCED "${expect_ADVANCED}")
+ set_property(CACHE SOME_ENTRY PROPERTY STRINGS "${expect_STRINGS}")
check_cache_props()
More information about the Cmake-commits
mailing list