1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/games/vavoom/files/patch-source_CMakeLists.txt
Raphael Kubo da Costa 0cb9c80bab Add some patches to properly declare dependencies between targets.
The upcoming CMake 3.5.0 ends up generating Makefiles that cause much more
problems in parallel builds when the dependencies are not declared correctly.

This also allows us to get rid of MAKE_JOBS_UNSAFE.

PR:		208033
2016-03-19 14:36:54 +00:00

21 lines
848 B
Plaintext

--- source/CMakeLists.txt.orig 2016-03-16 16:43:57 UTC
+++ source/CMakeLists.txt
@@ -790,7 +790,7 @@ if (MAIN_COMPILE_FLAGS)
set_target_properties(vavoom PROPERTIES COMPILE_FLAGS ${MAIN_COMPILE_FLAGS})
endif (MAIN_COMPILE_FLAGS)
target_link_libraries(vavoom ${MAIN_LIBS})
-add_dependencies(vavoom core timidity glbsp libglvis)
+add_dependencies(vavoom core timidity glbsp libglvis revision_check)
install(TARGETS vavoom DESTINATION ${BINDIR})
@@ -845,7 +845,7 @@ else(ENABLE_WRAPPERS)
endif(ENABLE_WRAPPERS)
set_target_properties(vavoom-dedicated PROPERTIES COMPILE_FLAGS -DSERVER)
target_link_libraries(vavoom-dedicated glbsp core ${ZLIB_LIBRARY} ${NET_LIBRARIES})
-add_dependencies(vavoom-dedicated core glbsp)
+add_dependencies(vavoom-dedicated core glbsp revision_check)
install(TARGETS vavoom-dedicated DESTINATION ${BINDIR})