Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 4, 2009, 7:27:35 PM (15 years ago)
Author:
rgrieder
Message:

Removing redundancy: Specifying ORXONOX_EXTERAL for a target should already suppress all warnings.

File:
1 edited

Legend:

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

    r5870 r5872  
    6767ENDIF()
    6868
    69 FUNCTION(ORXONOX_ADD_LIBRARY _target_name)
     69MACRO(ORXONOX_ADD_LIBRARY _target_name)
    7070  TU_ADD_TARGET(${_target_name} LIBRARY "STATIC;SHARED" ${ARGN})
    71 ENDFUNCTION(ORXONOX_ADD_LIBRARY)
    72 
    73 FUNCTION(ORXONOX_ADD_EXECUTABLE _target_name)
     71ENDMACRO(ORXONOX_ADD_LIBRARY)
     72
     73MACRO(ORXONOX_ADD_EXECUTABLE _target_name)
    7474  TU_ADD_TARGET(${_target_name} EXECUTABLE "WIN32" ${ARGN})
    75 ENDFUNCTION(ORXONOX_ADD_EXECUTABLE)
    76 
    77 
    78 FUNCTION(TU_ADD_TARGET _target_name _target_type _additional_switches)
     75ENDMACRO(ORXONOX_ADD_EXECUTABLE)
     76
     77
     78MACRO(TU_ADD_TARGET _target_name _target_type _additional_switches)
    7979  CAPITALISE_NAME(${_target_name} _target_name_capitalised)
    8080
     
    150150    SET(_arg_SHARED)
    151151    SET(_arg_STATIC STATIC)
     152  ENDIF()
     153
     154  # No warnings needed from third party libraries
     155  IF(_arg_ORXONOX_EXTERNAL)
     156    REMOVE_COMPILER_FLAGS("-W3 -W4" MSVC)
     157    ADD_COMPILER_FLAGS("-w")
    152158  ENDIF()
    153159
     
    234240  ENDIF()
    235241
    236 ENDFUNCTION(TU_ADD_TARGET)
     242ENDMACRO(TU_ADD_TARGET)
    237243
    238244
Note: See TracChangeset for help on using the changeset viewer.