From: <ai...@us...> - 2008-05-06 23:28:51
|
Revision: 8393 http://plplot.svn.sourceforge.net/plplot/?rev=8393&view=rev Author: airwin Date: 2008-05-06 16:23:33 -0700 (Tue, 06 May 2008) Log Message: ----------- Set cmake 2.6.x policy for empty list elements. Ignore them for now (the OLD 2.4 policy) until we can sort out several errors in our CMake logic caused by paying attention to empty list elements. Modified Paths: -------------- trunk/CMakeLists.txt Modified: trunk/CMakeLists.txt =================================================================== --- trunk/CMakeLists.txt 2008-05-06 23:11:28 UTC (rev 8392) +++ trunk/CMakeLists.txt 2008-05-06 23:23:33 UTC (rev 8393) @@ -21,6 +21,12 @@ # Version 2.4.5 or above of cmake is required! CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5 FATAL_ERROR) +# set CMake 2.6.x policy if the cmake_policy command exists, (i.e., if +# the user is using CMake 2.6.0 or newer). +if(COMMAND cmake_policy) + # empty elements are ignored in lists. + cmake_policy(SET CMP0007 OLD) +endif(COMMAND cmake_policy) # Recommended way to do user overrides of C-related variables, is given at # http://public.kitware.com/pipermail/cmake/2006-July/010334.html. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |