[Orxonox-commit 5923] r10582 - code/branches/core7

landauf at orxonox.net landauf at orxonox.net
Sat Sep 12 19:28:18 CEST 2015


Author: landauf
Date: 2015-09-12 19:28:17 +0200 (Sat, 12 Sep 2015)
New Revision: 10582

Modified:
   code/branches/core7/CMakeLists.txt
Log:
delete helper files before building. this avoids that old helper files remain in the build directories (e.g. if a module is renamed, deleted or changed to a plugin)

Modified: code/branches/core7/CMakeLists.txt
===================================================================
--- code/branches/core7/CMakeLists.txt	2015-09-12 16:46:55 UTC (rev 10581)
+++ code/branches/core7/CMakeLists.txt	2015-09-12 17:28:17 UTC (rev 10582)
@@ -82,10 +82,22 @@
 SET(CMAKE_CONFIG_OUTPUT_DIRECTORY  ${CMAKE_BINARY_DIR}/${DEFAULT_CONFIG_PATH})
 SET(CMAKE_LOG_OUTPUT_DIRECTORY     ${CMAKE_BINARY_DIR}/${DEFAULT_LOG_PATH})
 
-# Set the extension of the dynamic modules
+# Set the extension of the helper-files for dynamic modules
 SET(ORXONOX_MODULE_EXTENSION ".module")
 SET(ORXONOX_PLUGIN_EXTENSION ".plugin")
 
+# Delete all existing helper-files for dynamic modules
+# modules:
+FILE(GLOB_RECURSE _helper_files ${CMAKE_MODULE_OUTPUT_DIRECTORY}/*${ORXONOX_MODULE_EXTENSION})
+IF(_helper_files)
+  FILE(REMOVE ${_helper_files})
+ENDIF()
+# plugins:
+FILE(GLOB_RECURSE _helper_files ${CMAKE_PLUGIN_OUTPUT_DIRECTORY}/*${ORXONOX_PLUGIN_EXTENSION})
+IF(_helper_files)
+  FILE(REMOVE ${_helper_files})
+ENDIF()
+
 # Sets where to find the external libraries like OgreMain.dll at runtime
 # On Unix you should not have to change this at all.
 # This only applies to development runs in the build tree




More information about the Orxonox-commit mailing list