equal
deleted
inserted
replaced
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() |
104 |
104 |
105 #generic folder where our libraries reside |
105 #generic folder where our libraries reside |
165 check_library_exists(${SDLIMAGE_LIBRARY} IMG_Init "" HAVE_IMGINIT) |
165 check_library_exists(${SDLIMAGE_LIBRARY} IMG_Init "" HAVE_IMGINIT) |
166 if(HAVE_IMGINIT) |
166 if(HAVE_IMGINIT) |
167 add_definitions(-dSDL_IMAGE_NEWER) |
167 add_definitions(-dSDL_IMAGE_NEWER) |
168 endif(HAVE_IMGINIT) |
168 endif(HAVE_IMGINIT) |
169 |
169 |
170 if(NOT (SDL_VERSION VERSION_LESS 2.0)) |
170 if(${SDL_VERSION} VERSION_GREATER 1.3) |
171 add_definitions(-dSDL2) |
171 add_definitions(-dSDL2) |
172 endif() |
172 endif() |
173 |
173 |
174 #needs to be last |
174 #needs to be last |
175 add_definitions(-dDEBUGFILE) |
175 add_definitions(-dDEBUGFILE) |
183 |
183 |
184 |
184 |
185 #SOURCE AND PROGRAMS SECTION |
185 #SOURCE AND PROGRAMS SECTION |
186 if(BUILD_ENGINE_LIBRARY) |
186 if(BUILD_ENGINE_LIBRARY) |
187 message("***Engine will be built as library (experimental)***") |
187 message("***Engine will be built as library (experimental)***") |
188 if(APPLE AND current_macosx_version VERSION_GREATER "10.5") |
188 if(APPLE AND ${current_macosx_version} VERSION_GREATER "10.5") |
189 # due to compiler/linker issues on Max OS X 10.6 -k-no_order_inits is needed to avoid linking fail |
189 # due to compiler/linker issues on Max OS X 10.6 -k-no_order_inits is needed to avoid linking fail |
190 add_flag_prepend(CMAKE_Pascal_FLAGS "-k-no_order_inits") |
190 add_flag_prepend(CMAKE_Pascal_FLAGS "-k-no_order_inits") |
191 endif() |
191 endif() |
192 |
192 |
193 #workaround for missing <TARGET> support during object generation |
193 #workaround for missing <TARGET> support during object generation |