From: <ai...@us...> - 2009-04-22 17:17:37
|
Revision: 9828 http://plplot.svn.sourceforge.net/plplot/?rev=9828&view=rev Author: airwin Date: 2009-04-22 17:17:11 +0000 (Wed, 22 Apr 2009) Log Message: ----------- Output CMake version before doing anything else. Also, set minimum version to 2.6.3 for MSYS. The minimum version for all other platforms remains at 2.6.0. Modified Paths: -------------- trunk/CMakeLists.txt Modified: trunk/CMakeLists.txt =================================================================== --- trunk/CMakeLists.txt 2009-04-22 04:22:17 UTC (rev 9827) +++ trunk/CMakeLists.txt 2009-04-22 17:17:11 UTC (rev 9828) @@ -19,8 +19,14 @@ # along with PLplot; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# Version 2.6.0 or above of cmake is required! -CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) +message(STATUS "CMake version = ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}") +if(MSYS) + # Version 2.6.3 or above of cmake is required for MSYS + CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR) +else(MSYS) + # Version 2.6.0 or above of cmake is required for all other platforms + CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) +endif(MSYS) #foreach(policy RANGE 0 9) # cmake_policy(GET CMP000${policy} policy_result) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |