From 6db8fa7d044cbcf82aac12b77af4c2711885d0bb Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Wed, 16 Feb 2011 10:16:47 +0000 Subject: [PATCH] Replace unset() by set() with no value specified; this does the same. unset() was introduced in CMake 2.6.3 but we require only 2.6.2. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fd136dd01..07291fac4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -294,8 +294,10 @@ set(EIGEN_MAKECOMMAND_PLACEHOLDER "${CMAKE_MAKE_PROGRAM_SAVE} buildtests") configure_file(${CMAKE_BINARY_DIR}/DartConfiguration.tcl ${CMAKE_BINARY_DIR}/DartConfiguration.tcl) # restore default CMAKE_MAKE_PROGRAM set(CMAKE_MAKE_PROGRAM ${CMAKE_MAKE_PROGRAM_SAVE}) -unset(CMAKE_MAKE_PROGRAM_SAVE) -unset(EIGEN_MAKECOMMAND_PLACEHOLDER) +# un-set temporary variables so that it is like they never existed. +# CMake 2.6.3 introduces the more logical unset() syntax for this. +set(CMAKE_MAKE_PROGRAM_SAVE) +set(EIGEN_MAKECOMMAND_PLACEHOLDER) configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake.in ${CMAKE_BINARY_DIR}/CTestCustom.cmake)