Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2009, 10:51:21 PM (15 years ago)
Author:
rgrieder
Message:
  • New option for developers: Define ORXONOX_DEV as environment variable and the install command will make a copyable installation to ${CMAKE_BINARY_DIR}/install.
  • Removed reoccurring "Using package for library…" message (displayed only once now)
  • Using CMAKE_DEPENDENT_OPTION for the PCH_ENABLE_${target} options
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource2/cmake/TargetUtilities.cmake

    r5641 r5667  
    5252 #
    5353
     54INCLUDE(CMakeDependentOption)
    5455INCLUDE(CapitaliseName)
    5556INCLUDE(GenerateToluaBindings)
     
    112113
    113114  # 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)
    115116    # Provide convenient option to control PCH
    116117    STRING(TOUPPER "${_target_name}" _target_name_upper)
     
    120121      SET(PCH_DEFAULT TRUE)
    121122    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)
    123125
    124126    IF(PCH_ENABLE_${_target_name_upper})
Note: See TracChangeset for help on using the changeset viewer.