From: <arj...@us...> - 2009-04-24 04:37:17
|
Revision: 9841 http://plplot.svn.sourceforge.net/plplot/?rev=9841&view=rev Author: arjenmarkus Date: 2009-04-24 04:37:14 +0000 (Fri, 24 Apr 2009) Log Message: ----------- Moved the check on the minimum CMake version for MSYS to after the call to project(), as that seems to be the first moment in the build process that the variable is actually known. Modified Paths: -------------- trunk/CMakeLists.txt Modified: trunk/CMakeLists.txt =================================================================== --- trunk/CMakeLists.txt 2009-04-23 22:10:10 UTC (rev 9840) +++ trunk/CMakeLists.txt 2009-04-24 04:37:14 UTC (rev 9841) @@ -28,6 +28,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) endif(MSYS) + #foreach(policy RANGE 0 9) # cmake_policy(GET CMP000${policy} policy_result) # message(STATUS "Policy CMP000${policy} is ${policy_result}") @@ -46,6 +47,12 @@ project(plplot) +# For use under MSYS version 2.6.3 or above of cmake is required! +# The variable MSYS is first known at this point in the build process +IF(MSYS) + CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3 FATAL_ERROR) +ENDIF(MSYS) + set(PACKAGE plplot) # Location where PLplot cmake build system first looks for cmake modules. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |