hedgewars/CMakeLists.txt
changeset 6801 b42bdf470b84
parent 6491 736479f3d348
child 6881 ee01eeaa1281
equal deleted inserted replaced
6800:76f5af60b55b 6801:b42bdf470b84
   132     message(STATUS "Freepascal version installed: ${fpc_vers_major}.${fpc_vers_minor}")
   132     message(STATUS "Freepascal version installed: ${fpc_vers_major}.${fpc_vers_minor}")
   133     math(EXPR fpc_ver "${fpc_vers_major}*10000 + ${fpc_vers_minor}*100 + ${fpc_vers_patch}")
   133     math(EXPR fpc_ver "${fpc_vers_major}*10000 + ${fpc_vers_minor}*100 + ${fpc_vers_patch}")
   134 
   134 
   135     if(fpc_ver LESS "020200")
   135     if(fpc_ver LESS "020200")
   136         message(FATAL_ERROR "Minimum required version of FreePascal is 2.2.0")
   136         message(FATAL_ERROR "Minimum required version of FreePascal is 2.2.0")
   137     elseif(APPLE AND x86_64_build AND (fpc_ver LESS "020400"))
   137     elseif(APPLE AND (fpc_ver LESS "020600"))
   138         message(FATAL_ERROR "Minimum required version of FreePascal is 2.4.0 for building 64 bit applications on Mac OS X")
   138         message(FATAL_ERROR "Minimum required version of FreePascal is 2.6.0 on Mac OS X")
   139     endif()
   139     endif()
   140 else()
   140 else()
   141     message(FATAL_ERROR "No Pascal compiler found!")
   141     message(FATAL_ERROR "No Pascal compiler found!")
   142 endif()
   142 endif()
   143 
   143