equal
deleted
inserted
replaced
174 endif(${NOSDL2}) |
174 endif(${NOSDL2}) |
175 |
175 |
176 #needs to be last |
176 #needs to be last |
177 add_definitions(-dDEBUGFILE) |
177 add_definitions(-dDEBUGFILE) |
178 |
178 |
|
179 |
|
180 # make source files objects depend on their predecessors in list |
|
181 set(sourcefiles_sofar "${CMAKE_CURRENT_SOURCE_DIR}/options.inc" "${CMAKE_CURRENT_BINARY_DIR}/config.inc") |
|
182 foreach(loop_var ${engine_sources}) |
|
183 SET_SOURCE_FILES_PROPERTIES(${loop_var} PROPERTIES OBJECT_DEPENDS "${sourcefiles_sofar}") |
|
184 list(APPEND sourcefiles_sofar "${CMAKE_CURRENT_SOURCE_DIR}/${loop_var}") |
|
185 endforeach(loop_var) |
|
186 |
|
187 |
179 #SOURCE AND PROGRAMS SECTION |
188 #SOURCE AND PROGRAMS SECTION |
180 if(BUILD_ENGINE_LIBRARY) |
189 if(BUILD_ENGINE_LIBRARY) |
181 message("***Engine will be built as library (experimental)***") |
190 message("***Engine will be built as library (experimental)***") |
182 if(APPLE AND current_macosx_version VERSION_GREATER "10.5") |
191 if(APPLE AND current_macosx_version VERSION_GREATER "10.5") |
183 # due to compiler/linker issues on Max OS X 10.6 -k-no_order_inits is needed to avoid linking fail |
192 # due to compiler/linker issues on Max OS X 10.6 -k-no_order_inits is needed to avoid linking fail |