Changeset 5667 for code/branches
- Timestamp:
- Aug 22, 2009, 10:51:21 PM (15 years ago)
- Location:
- code/branches/resource2/cmake
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource2/cmake/InstallConfig.cmake
r5664 r5667 24 24 # 25 25 26 IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) # Variable provided by CMake 27 IF("$ENV{ORXONOX_DEV}" OR TARDIS) 28 SET(_install_prefix_changed 1) 29 SET(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/install CACHE PATH 30 "Install path prefix, prepended onto install directories." FORCE) 31 ENDIF() 32 ENDIF() 33 26 34 SET(_info_text "Puts all installed files in subfolders of the install prefix path. That root folder can then be moved, copied and renamed as you wish. The executable will not write to folders like ~/.orxonox or \"Applictation Data\"") 27 IF(UNIX )35 IF(UNIX AND NOT _install_prefix_changed) 28 36 OPTION(INSTALL_COPYABLE "${_info_text}" FALSE) 29 37 ELSE() -
code/branches/resource2/cmake/PackageConfig.cmake
r5641 r5667 51 51 ENDIF() 52 52 53 MESSAGE(STATUS "Using library package for the dependencies.") 53 IF(NOT _INTERNAL_PACKAGE_MESSAGE) 54 MESSAGE(STATUS "Using library package for the dependencies.") 55 SET(_INTERNAL_PACKAGE_MESSAGE 1 CACHE INTERNAL "Do not edit!" FORCE) 56 ENDIF() 54 57 55 58 # Include paths and other special treatments -
code/branches/resource2/cmake/TargetUtilities.cmake
r5641 r5667 52 52 # 53 53 54 INCLUDE(CMakeDependentOption) 54 55 INCLUDE(CapitaliseName) 55 56 INCLUDE(GenerateToluaBindings) … … 112 113 113 114 # First part (pre target) of precompiled header files 114 IF(PCH_COMPILER_SUPPORT AND PCH_ENABLE AND_arg_PCH_FILE)115 IF(PCH_COMPILER_SUPPORT AND _arg_PCH_FILE) 115 116 # Provide convenient option to control PCH 116 117 STRING(TOUPPER "${_target_name}" _target_name_upper) … … 120 121 SET(PCH_DEFAULT TRUE) 121 122 ENDIF() 122 OPTION(PCH_ENABLE_${_target_name_upper} "Enable using precompiled header files for library ${_target_name}." ${PCH_DEFAULT}) 123 CMAKE_DEPENDENT_OPTION(PCH_ENABLE_${_target_name_upper} 124 "Enable using precompiled header files for library ${_target_name}." ${PCH_DEFAULT} PCH_ENABLE OFF) 123 125 124 126 IF(PCH_ENABLE_${_target_name_upper})
Note: See TracChangeset
for help on using the changeset viewer.