Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2015, 11:28:26 PM (10 years ago)
Author:
landauf
Message:

program icon now works also with MinGW. but I had to exclude the PCH-file for the resource file

File:
1 edited

Legend:

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

    r10187 r10268  
    104104    FOREACH(_file ${_source_files})
    105105      GET_SOURCE_FILE_PROPERTY(_is_header ${_file} HEADER_FILE_ONLY)
    106       IF(NOT _is_header)
     106      # Don't use pch file for header-only files and *.rc files
     107      IF((NOT _is_header) AND (NOT _file MATCHES "\\.rc$"))
    107108        GET_SOURCE_FILE_PROPERTY(_old_flags ${_file} COMPILE_FLAGS)
    108109        IF(NOT _old_flags)
     
    113114          OBJECT_DEPENDS "${_pch_header_file}"
    114115        )
    115       ENDIF(NOT _is_header)
     116      ENDIF()
    116117    ENDFOREACH(_file)
    117118
Note: See TracChangeset for help on using the changeset viewer.