hedgewars/CMakeLists.txt
branchsdl2transition
changeset 9798 f2b18754742f
parent 9703 966d180184b4
parent 9743 6e505ea936ad
child 11360 7a7611adf715
equal deleted inserted replaced
9711:7d0329f37181 9798:f2b18754742f
   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