Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 12, 2015, 7:28:17 PM (9 years ago)
Author:
landauf
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/CMakeLists.txt

    r10547 r10582  
    8383SET(CMAKE_LOG_OUTPUT_DIRECTORY     ${CMAKE_BINARY_DIR}/${DEFAULT_LOG_PATH})
    8484
    85 # Set the extension of the dynamic modules
     85# Set the extension of the helper-files for dynamic modules
    8686SET(ORXONOX_MODULE_EXTENSION ".module")
    8787SET(ORXONOX_PLUGIN_EXTENSION ".plugin")
     88
     89# Delete all existing helper-files for dynamic modules
     90# modules:
     91FILE(GLOB_RECURSE _helper_files ${CMAKE_MODULE_OUTPUT_DIRECTORY}/*${ORXONOX_MODULE_EXTENSION})
     92IF(_helper_files)
     93  FILE(REMOVE ${_helper_files})
     94ENDIF()
     95# plugins:
     96FILE(GLOB_RECURSE _helper_files ${CMAKE_PLUGIN_OUTPUT_DIRECTORY}/*${ORXONOX_PLUGIN_EXTENSION})
     97IF(_helper_files)
     98  FILE(REMOVE ${_helper_files})
     99ENDIF()
    88100
    89101# Sets where to find the external libraries like OgreMain.dll at runtime
Note: See TracChangeset for help on using the changeset viewer.