# HG changeset patch # User koda # Date 1381442676 -7200 # Node ID 217eacb69395035574e1b5d4c64f91fef40c9248 # Parent 9af6176fcd8fee8a231c6c251431f2d012df93b5 fail early when an incompatible cmake version is found diff -r 9af6176fcd8f -r 217eacb69395 cmake_modules/CMakeDeterminePascalCompiler.cmake --- a/cmake_modules/CMakeDeterminePascalCompiler.cmake Thu Oct 10 23:33:22 2013 +0200 +++ b/cmake_modules/CMakeDeterminePascalCompiler.cmake Fri Oct 11 00:04:36 2013 +0200 @@ -5,6 +5,9 @@ # the cmake variable CMAKE_GENERATOR_PASCAL which can be defined by a generator # as a default compiler +# NOTE: on Darwin cmake >= 2.8.11 until cmake <= 2.8.12.1 will add an incompatible +# -F flag to so you won't be able to use those versions with this script + if(NOT CMAKE_Pascal_COMPILER) # prefer the environment variable FPC if($ENV{FPC} MATCHES ".+") diff -r 9af6176fcd8f -r 217eacb69395 cmake_modules/platform.cmake --- a/cmake_modules/platform.cmake Thu Oct 10 23:33:22 2013 +0200 +++ b/cmake_modules/platform.cmake Fri Oct 11 00:04:36 2013 +0200 @@ -1,5 +1,10 @@ if(APPLE) + if(${CMAKE_VERSION} VERSION_GREATER "2.8.10.2" AND + ${CMAKE_VERSION} VERSION_LESS "2.8.12.1") + message(FATAL_ERROR "This version of CMake is known *not* to work, please update or use a lower version") + endif() + set(CMAKE_FIND_FRAMEWORK "FIRST") #what system are we building for