Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3195 for code/branches


Ignore:
Timestamp:
Jun 19, 2009, 2:28:24 PM (15 years ago)
Author:
rgrieder
Message:

Reverted some changes previously made: on non-MSVC platforms you can now find the run scripts again in top binary directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/bin/CMakeLists.txt

    r3167 r3195  
    4040IF(NOT CMAKE_CONFIGURATION_TYPES)
    4141  SET(_subdirs .)
     42  SEt(_default_subdir .)
    4243ELSE()
    4344  SET(_subdirs ${CMAKE_CONFIGURATION_TYPES})
     45  SEt(_default_subdir) # No default subdir
    4446ENDIF()
    4547STRING(REPLACE "/" "\\" ORXONOX_RUNTIME_LIBRARY_DIRECTORY_WINDOWS ${ORXONOX_RUNTIME_LIBRARY_DIRECTORY})
     
    5355  FOREACH(_script ${RUN_SCRIPTS})
    5456    CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${_script}.in ${CURRENT_RUNTIME_DIR}/${_script} @ONLY)
     57    IF(_subdir STREQUAL _default_subdir)
     58      # Convenience script to be used when sitting in the binary directory. Does nothing for MSVC
     59      CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${_script}.in ${CMAKE_BINARY_DIR}/${_script} @ONLY)
     60    ENDIF()
    5561  ENDFOREACH(_script)
    5662
Note: See TracChangeset for help on using the changeset viewer.