[Cmake-commits] [cmake-commits] hoffman committed CMakeBuildTest.cmake.in 1.3 1.4
cmake-commits at cmake.org
cmake-commits at cmake.org
Sat Oct 18 10:31:18 EDT 2008
Update of /cvsroot/CMake/CMake/Tests
In directory public:/mounts/ram/cvs-serv13112
Modified Files:
CMakeBuildTest.cmake.in
Log Message:
ENH: fix test to work with in-source testing of CMake
Index: CMakeBuildTest.cmake.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CMakeBuildTest.cmake.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** CMakeBuildTest.cmake.in 15 Oct 2008 20:56:01 -0000 1.3
--- CMakeBuildTest.cmake.in 18 Oct 2008 14:31:16 -0000 1.4
***************
*** 2,5 ****
--- 2,11 ----
make_directory("@CMAKE_BUILD_TEST_BINARY_DIR@")
+ # remove the CMakeCache.txt file from the source dir
+ # if there is one, so that in-source cmake tests
+ # still pass
+ message("Remove: @CMAKE_BUILD_TEST_SOURCE_DIR@/CMakeCache.txt")
+ file(REMOVE "@CMAKE_BUILD_TEST_SOURCE_DIR@/CMakeCache.txt")
+
# run cmake in the binary directory
message("running: ${CMAKE_COMMAND}")
More information about the Cmake-commits
mailing list