hedgewars/CMakeLists.txt
changeset 9741 cf086f49516b
parent 9668 75aab6802a2e
child 9743 6e505ea936ad
equal deleted inserted replaced
9740:d159ddae0358 9741:cf086f49516b
   164 endif()
   164 endif()
   165 
   165 
   166 #needs to be last
   166 #needs to be last
   167 add_definitions(-dDEBUGFILE)
   167 add_definitions(-dDEBUGFILE)
   168 
   168 
       
   169 
       
   170 # make source files objects depend on their predecessors in list
       
   171 foreach(loop_var ${engine_sources})
       
   172     if (sourcefiles_sofar)
       
   173         SET_SOURCE_FILES_PROPERTIES(${loop_var} PROPERTIES OBJECT_DEPENDS "${sourcefiles_sofar}")
       
   174     endif()
       
   175     list(APPEND sourcefiles_sofar "${CMAKE_CURRENT_SOURCE_DIR}/${loop_var}")
       
   176 endforeach(loop_var)
       
   177 
       
   178 
   169 #SOURCE AND PROGRAMS SECTION
   179 #SOURCE AND PROGRAMS SECTION
   170 if(BUILD_ENGINE_LIBRARY)
   180 if(BUILD_ENGINE_LIBRARY)
   171     message("***Engine will be built as library (experimental)***")
   181     message("***Engine will be built as library (experimental)***")
   172     if(APPLE AND current_macosx_version VERSION_GREATER "10.5")
   182     if(APPLE AND current_macosx_version VERSION_GREATER "10.5")
   173         # due to compiler/linker issues on Max OS X 10.6 -k-no_order_inits is needed to avoid linking fail
   183         # due to compiler/linker issues on Max OS X 10.6 -k-no_order_inits is needed to avoid linking fail