hedgewars/CMakeLists.txt
changeset 7654 e07580669a3e
parent 7653 6dda2562f692
child 7655 b993257902d3
equal deleted inserted replaced
7653:6dda2562f692 7654:e07580669a3e
   251 #this command is a workaround to some inlining issues present in older
   251 #this command is a workaround to some inlining issues present in older
   252 # FreePascal versions and fixed in 2.6, That version is mandatory on OSX,
   252 # FreePascal versions and fixed in 2.6, That version is mandatory on OSX,
   253 # hence the command is not needed there
   253 # hence the command is not needed there
   254 if(NOT APPLE)
   254 if(NOT APPLE)
   255     add_custom_target(ENGINECLEAN COMMAND ${CMAKE_BUILD_TOOL} "clean" "${PROJECT_BINARY_DIR}" "${hedgewars_SOURCE_DIR}/hedgewars")
   255     add_custom_target(ENGINECLEAN COMMAND ${CMAKE_BUILD_TOOL} "clean" "${PROJECT_BINARY_DIR}" "${hedgewars_SOURCE_DIR}/hedgewars")
   256     if(NO_VIDEOREC)
   256     if(NO_VIDEOREC OR NOT ${FFMPEG_FOUND})
   257         add_dependencies(${engine_output_name} ENGINECLEAN)
   257         add_dependencies(${engine_output_name} ENGINECLEAN)
   258     else()
   258     else()
   259         add_dependencies(avwrapper ENGINECLEAN)
   259         add_dependencies(avwrapper ENGINECLEAN)
   260     endif()
   260     endif()
   261 endif()
   261 endif()