[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.170 1.171

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Dec 10 10:33:44 EST 2009


Update of /cvsroot/CMake/CMake
In directory public:/mounts/ram/cvs-serv15299

Modified Files:
	CMakeLists.txt 
Log Message:
Apply CMake test-time config to all tests

We configure an EnforceConfig.cmake script to load at CTest time.
Previously we loaded it from Tests/CTestTestfile.cmake, but now we load
it from the top level so it applies to all tests.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/CMakeLists.txt,v
retrieving revision 1.170
retrieving revision 1.171
diff -C 2 -d -r1.170 -r1.171
*** CMakeLists.txt	10 Dec 2009 14:10:12 -0000	1.170
--- CMakeLists.txt	10 Dec 2009 15:33:38 -0000	1.171
***************
*** 343,346 ****
--- 343,350 ----
  INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
  
+ # Set up test-time configuration.
+ SET_DIRECTORY_PROPERTIES(PROPERTIES
+   TEST_INCLUDE_FILE "${CMake_BINARY_DIR}/Tests/EnforceConfig.cmake")
+ 
  # where to write the resulting executables and libraries
  SET(BUILD_SHARED_LIBS OFF)



More information about the Cmake-commits mailing list