Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7289 for code/trunk/cmake


Ignore:
Timestamp:
Aug 31, 2010, 3:26:14 PM (14 years ago)
Author:
rgrieder
Message:

This should actually fix the PCH problem with GCC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/tools/PrecompiledHeaderFiles.cmake

    r7288 r7289  
    125125        SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES
    126126          COMPILE_FLAGS "${_old_flags} -include ${_pch_header_filename}"
    127           OBJECT_DEPENDS "${_pch_header_file};${_pch_file}"
     127          OBJECT_DEPENDS "${_pch_header_file}"
    128128        )
    129129      ENDIF(NOT _is_header)
    130130    ENDFOREACH(_file)
    131 
    132     # Makefile dependency scanner requires the PCH file to be part of the
    133     # target files in order to work properly
    134     LIST(APPEND _source_files ${_pch_file})
    135131
    136132  ENDIF()
     
    161157        VERBATIM
    162158      )
     159      ADD_CUSTOM_TARGET(${_target_name}PrecompiledHeader DEPENDS ${_pch_file})
     160      ADD_DEPENDENCIES(${_target_name} ${_target_name}PrecompiledHeader)
    163161
    164162    ENDIF(CMAKE_COMPILER_IS_GNU)
Note: See TracChangeset for help on using the changeset viewer.