Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7137 for code/branches


Ignore:
Timestamp:
Jun 10, 2010, 12:58:40 AM (14 years ago)
Author:
rgrieder
Message:

Prevent possible bug if target already has compile flags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/cmake/TargetUtilities.cmake

    r7135 r7137  
    208208  # would not work because of the slash)
    209209  IF(_arg_ORXONOX_EXTERNAL AND MSVC)
    210     SET_TARGET_PROPERTIES(${_target_name} PROPERTIES COMPILE_FLAGS "-Zm1000")
     210    GET_TARGET_PROPERTY(_compile_flags ${_target_name} COMPILE_FLAGS)
     211    IF(NOT _compile_flags)
     212      SET(_compile_flags)
     213    ENDIF()
     214    SET_TARGET_PROPERTIES(${_target_name} PROPERTIES COMPILE_FLAGS "${_compile_flags} -Zm1000")
    211215  ENDIF()
    212216
Note: See TracChangeset for help on using the changeset viewer.