Changeset 5667 for code/branches/resource2/cmake/TargetUtilities.cmake
- Timestamp:
- Aug 22, 2009, 10:51:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.