hedgewars/CMakeLists.txt
branch0.9.18
changeset 7940 d5e49cf042d9
parent 7817 6cc558a69b58
child 7942 17b3937de37b
equal deleted inserted replaced
7938:80e2e50471d9 7940:d5e49cf042d9
   191 
   191 
   192 
   192 
   193 
   193 
   194 #this command is a workaround to some inlining issues present in older FreePascal versions and fixed in 2.6
   194 #this command is a workaround to some inlining issues present in older FreePascal versions and fixed in 2.6
   195 if(fpc_version LESS "020600")
   195 if(fpc_version LESS "020600")
   196     add_custom_target(ENGINECLEAN COMMAND ${CMAKE_BUILD_TOOL} "clean" "${PROJECT_BINARY_DIR}" "${hedgewars_SOURCE_DIR}/hedgewars")
   196     #under some configurations CMAKE_BUILD_TOOL fails to pass on the jobserver, breaking parallel compilation
       
   197     #TODO: check if this is needed on windows too
       
   198     if(UNIX)
       
   199         set(SAFE_BUILD_TOOL $(MAKE))
       
   200     else()
       
   201         set(SAFE_BUILD_TOOL ${CMAKE_BUILD_TOOL})
       
   202     endif()
       
   203     add_custom_target(ENGINECLEAN COMMAND ${SAFE_BUILD_TOOL} "clean" "${PROJECT_BINARY_DIR}" "${hedgewars_SOURCE_DIR}/hedgewars")
   197 endif()
   204 endif()
   198 
   205 
   199 
   206 
   200 if(NOT NOVIDEOREC)
   207 if(NOT NOVIDEOREC)
   201     set(FFMPEG_FIND_QUIETLY true)
   208     set(FFMPEG_FIND_QUIETLY true)