[Orxonox-commit 6057] r10716 - code/trunk/cmake/tools
landauf at orxonox.net
landauf at orxonox.net
Wed Oct 28 22:56:16 CET 2015
Author: landauf
Date: 2015-10-28 22:56:16 +0100 (Wed, 28 Oct 2015)
New Revision: 10716
Modified:
code/trunk/cmake/tools/TargetUtilities.cmake
Log:
let orxonox_main depend on plugins too. this means that every plugin needs to be built before orxonox-main (which is helpful for certain IDEs like Visual Studio).
Modified: code/trunk/cmake/tools/TargetUtilities.cmake
===================================================================
--- code/trunk/cmake/tools/TargetUtilities.cmake 2015-10-27 20:08:40 UTC (rev 10715)
+++ code/trunk/cmake/tools/TargetUtilities.cmake 2015-10-28 21:56:16 UTC (rev 10716)
@@ -345,6 +345,8 @@
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_PLUGIN_OUTPUT_DIRECTORY} # Unix
)
ADD_MODULE_OR_PLUGIN(${_target_name} ${CMAKE_PLUGIN_OUTPUT_DIRECTORY} ${PLUGIN_INSTALL_DIRECTORY} ${ORXONOX_PLUGIN_EXTENSION})
+ # Ensure that the main program depends on the plugin
+ SET(ORXONOX_MODULES ${ORXONOX_MODULES} ${_target_name} CACHE INTERNAL "")
ENDIF()
# Static library flags are not globally available
More information about the Orxonox-commit
mailing list