Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 21, 2009, 12:20:23 AM (15 years ago)
Author:
rgrieder
Message:

Installation paths should be relative when using in C++ code if they're actually relative.
This ensures copy & paste installations under windows. For Unix it is only useful when installation to an arbitrary folder instead of /usr
(also resolves a problem the with tcl lib path; Apparently Tcl cannot cope with spaces in the path (and neither "\") so C:/Program Files/ was not working at all)

  • boost::filesystem::path::native_file_string is depricated, using file_string now.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem3/cmake/BuildConfig.cmake

    r2686 r2687  
    126126  SET(ORXONOX_LOG_INSTALL_PATH     ${USER_DIR}/.orxonox/log)
    127127  SET(ORXONOX_CONFIG_INSTALL_PATH  ${USER_DIR}/.orxonox/config)
     128
     129  # Execution paths, either relative to the binary dir or absolute
     130  # For Windows copy&paste installs relative paths are much better
     131  SET(ORXONOX_MEDIA_INSTALL_PATH_EXEC ../../share/orxonox)
     132  SET(ORXONOX_CONFIG_INSTALL_PATH_EXEC ${ORXONOX_CONFIG_INSTALL_PATH})
     133  SET(ORXONOX_LOG_INSTALL_PATH_EXEC    ${ORXONOX_LOG_INSTALL_PATH})
    128134ELSEIF(WIN32)
    129135  SET(ORXONOX_RUNTIME_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/bin)
     
    134140  SET(ORXONOX_LOG_INSTALL_PATH     ${CMAKE_INSTALL_PREFIX}/log)
    135141  SET(ORXONOX_CONFIG_INSTALL_PATH  ${CMAKE_INSTALL_PREFIX}/config)
     142
     143  # Execution paths, either relative to the binary dir or absolute
     144  # For Windows copy&paste installs relative paths are much better
     145  SET(ORXONOX_MEDIA_INSTALL_PATH_EXEC ../media)
     146  SET(ORXONOX_CONFIG_INSTALL_PATH_EXEC ../config)
     147  SET(ORXONOX_LOG_INSTALL_PATH_EXEC ../log)
    136148ENDIF()
    137149
Note: See TracChangeset for help on using the changeset viewer.