hedgewars/CMakeLists.txt
branchcmake_pascal
changeset 8821 e85ff6e298b5
parent 8819 8e25b820b360
child 8823 65b430b6cd68
equal deleted inserted replaced
8819:8e25b820b360 8821:e85ff6e298b5
   104 #when cmake-2.6 support is dropped, this ought to be inside FindFreePascal.cmake
   104 #when cmake-2.6 support is dropped, this ought to be inside FindFreePascal.cmake
   105 if (FREEPASCAL_VERSION VERSION_LESS required_fpc_version)
   105 if (FREEPASCAL_VERSION VERSION_LESS required_fpc_version)
   106     message(FATAL_ERROR "Freepascal ${FREEPASCAL_VERSION} is too old, minimum version required is ${required_fpc_version}")
   106     message(FATAL_ERROR "Freepascal ${FREEPASCAL_VERSION} is too old, minimum version required is ${required_fpc_version}")
   107 elseif(FREEPASCAL_VERSION VERSION_GREATER 2.4)
   107 elseif(FREEPASCAL_VERSION VERSION_GREATER 2.4)
   108     #enable INLINE only with a recent version of fpc
   108     #enable INLINE only with a recent version of fpc
   109     add_flag_append(CMAKE_Pascal_FLAGS_RELEASE -Si)
   109     add_flag_prepend(CMAKE_Pascal_FLAGS_RELEASE -Si)
   110 endif()
   110 endif()
   111 
   111 
   112 
   112 
   113 #DEPENDECIES AND EXECUTABLES SECTION
   113 #DEPENDECIES AND EXECUTABLES SECTION
   114 if(APPLE)
   114 if(APPLE)