Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3251 for code/trunk/cmake


Ignore:
Timestamp:
Jun 29, 2009, 6:13:26 PM (15 years ago)
Author:
rgrieder
Message:

Fixed two serious dependency bugs:

  • Only every second file of the tolua bind dependencies was regarded as such (already fixed in trunk)
  • Running cmake still caused complete rebuilds when using PCH
File:
1 edited

Legend:

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

    r3196 r3251  
    110110    GET_GCC_COMPILER_FLAGS(${_target_name} _pch_gcc_flags)
    111111    # Make sure we recompile the pch file even if only the flags change
    112     IF(NOT "${_pch_gcc_flags}" STREQUAL "${_INTERNAL_PCH_GCC_FLAGS}")
    113       SET(_INTERNAL_PCH_GCC_FLAGS "${_pch_gcc_flags}" CACHE INTERNAL "")
     112    IF(NOT "${_pch_gcc_flags}" STREQUAL "${_INTERNAL_${_target_name}_PCH_GCC_FLAGS}")
     113      SET(_INTERNAL_${_target_name}_PCH_GCC_FLAGS "${_pch_gcc_flags}" CACHE INTERNAL "")
    114114      FILE(WRITE ${_pch_dep_helper_file} "/* ${_pch_gcc_flags} */")
    115115    ENDIF()
     
    153153        ARGS ${pchsupport_compiler_cxx_arg1} ${_pch_gcc_flags} -c -x c++-header -o ${_pch_file} ${_pch_header_file}
    154154        WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    155         DEPENDS ${_pch_header_file} ${_pch_dep_helper_file}
    156         IMPLICIT_DEPENDS ${_pch_header_file}
     155        DEPENDS ${_pch_dep_helper_file}
     156        IMPLICIT_DEPENDS CXX ${_pch_header_file}
    157157        VERBATIM
    158158      )
Note: See TracChangeset for help on using the changeset viewer.