Changeset 7289
- Timestamp:
- Aug 31, 2010, 3:26:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/tools/PrecompiledHeaderFiles.cmake
r7288 r7289 125 125 SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES 126 126 COMPILE_FLAGS "${_old_flags} -include ${_pch_header_filename}" 127 OBJECT_DEPENDS "${_pch_header_file} ;${_pch_file}"127 OBJECT_DEPENDS "${_pch_header_file}" 128 128 ) 129 129 ENDIF(NOT _is_header) 130 130 ENDFOREACH(_file) 131 132 # Makefile dependency scanner requires the PCH file to be part of the133 # target files in order to work properly134 LIST(APPEND _source_files ${_pch_file})135 131 136 132 ENDIF() … … 161 157 VERBATIM 162 158 ) 159 ADD_CUSTOM_TARGET(${_target_name}PrecompiledHeader DEPENDS ${_pch_file}) 160 ADD_DEPENDENCIES(${_target_name} ${_target_name}PrecompiledHeader) 163 161 164 162 ENDIF(CMAKE_COMPILER_IS_GNU)
Note: See TracChangeset
for help on using the changeset viewer.