hedgewars/CMakeLists.txt
changeset 9963 9e75dbffec81
parent 9961 c18c66d621e5
child 9965 7ced30acf533
equal deleted inserted replaced
9961:c18c66d621e5 9963:9e75dbffec81
    92     #these interact with everything, so compile last
    92     #these interact with everything, so compile last
    93     uScript.pas
    93     uScript.pas
    94     )
    94     )
    95 
    95 
    96 
    96 
    97 if (${CMAKE_Pascal_COMPILER_VERSION} VERSION_LESS 2.2 OR # older versions are just ancient
    97 if(${CMAKE_Pascal_COMPILER_VERSION} VERSION_LESS 2.2 OR # older versions are just ancient
    98     (${CMAKE_Pascal_COMPILER_VERSION} VERSION_LESS 2.6 AND APPLE)) # because of 64bit and opengl bindings
    98    (${CMAKE_Pascal_COMPILER_VERSION} VERSION_LESS 2.6 AND APPLE)) # because of 64bit and opengl bindings
    99     message(FATAL_ERROR "Your FreePascal installation is too old (fpc ${CMAKE_Pascal_COMPILER_VERSION})!")
    99     message(FATAL_ERROR "Your FreePascal installation is too old (fpc ${CMAKE_Pascal_COMPILER_VERSION})!")
   100 elseif(CMAKE_Pascal_COMPILER_VERSION VERSION_GREATER 2.4)
   100 elseif(CMAKE_Pascal_COMPILER_VERSION VERSION_GREATER 2.4)
   101     #enable INLINE only with a recent version of fpc
   101     #enable INLINE only with a recent version of fpc
   102     add_flag_prepend(CMAKE_Pascal_FLAGS_RELEASE -Si)
   102     add_flag_prepend(CMAKE_Pascal_FLAGS_RELEASE -Si)
   103 endif()
   103 endif()