Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5872 for code/branches


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.

Location:
code/branches/core5
Files:
9 edited

Legend:

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

    r5695 r5872  
    3939  # Using LIST(FIND ...) speeds up the process
    4040  SET(_keywords ${_switches} ${_list_names})
     41
     42  # Reset all arguments
     43  FOREACH(_arg ${_switches} ${_list_names})
     44    SET(_arg_${_arg})
     45  ENDFOREACH(_arg)
    4146
    4247  # Parse all the arguments and set the corresponding variable
  • 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
  • code/branches/core5/src/external/bullet/CMakeLists.txt

    r5871 r5872  
    2727ADD_SUBDIRECTORY(LinearMath)
    2828
    29 # No warnings needed from third party libraries
    30 REMOVE_COMPILER_FLAGS("-W3 -W4" MSVC)
    31 ADD_COMPILER_FLAGS("-w")
    32 
    3329ORXONOX_ADD_LIBRARY(bullet_orxonox
    3430  ORXONOX_EXTERNAL
  • code/branches/core5/src/external/ceguilua/CMakeLists.txt

    r5738 r5872  
    6767)
    6868
    69 # No warnings needed from third party libraries
    70 REMOVE_COMPILER_FLAGS("-W3 -W4" MSVC)
    71 ADD_COMPILER_FLAGS("-w")
    72 
    7369SOURCE_GROUP("Source" FILES ${CEGUILUA_FILES})
    7470
  • code/branches/core5/src/external/cpptcl/CMakeLists.txt

    r5738 r5872  
    3232)
    3333
    34 # No warnings needed from third party libraries
    35 REMOVE_COMPILER_FLAGS("-W3 -W4" MSVC)
    36 ADD_COMPILER_FLAGS("-w")
    37 
    3834ORXONOX_ADD_LIBRARY(cpptcl_orxonox
    3935  ORXONOX_EXTERNAL
  • code/branches/core5/src/external/ogreceguirenderer/CMakeLists.txt

    r5871 r5872  
    3030)
    3131
    32 # No warnings needed from third party libraries
    33 REMOVE_COMPILER_FLAGS("-W3 -W4" MSVC)
    34 ADD_COMPILER_FLAGS("-w")
    35 
    3632ORXONOX_ADD_LIBRARY(ogreceguirenderer_orxonox
    3733  ORXONOX_EXTERNAL
  • code/branches/core5/src/external/ois/CMakeLists.txt

    r5871 r5872  
    5252ENDIF()
    5353
    54 # No warnings needed from third party libraries
    55 REMOVE_COMPILER_FLAGS("-W3 -W4" MSVC)
    56 ADD_COMPILER_FLAGS("-w")
    57 
    5854INCLUDE_DIRECTORIES(.)
    5955
  • code/branches/core5/src/external/tinyxml/CMakeLists.txt

    r5871 r5872  
    3333)
    3434
    35 # No warnings needed from third party libraries
    36 REMOVE_COMPILER_FLAGS("-W3 -W4" MSVC)
    37 ADD_COMPILER_FLAGS("-w")
    38 
    3935ORXONOX_ADD_LIBRARY(tinyxml++_orxonox
    4036  ORXONOX_EXTERNAL
  • code/branches/core5/src/external/tolua/CMakeLists.txt

    r5871 r5872  
    3131COMPILATION_END
    3232)
    33 
    34 # No warnings needed from third party libraries
    35 REMOVE_COMPILER_FLAGS("-W3 -W4" MSVC)
    36 ADD_COMPILER_FLAGS("-w")
    3733
    3834ORXONOX_ADD_LIBRARY(tolua++_orxonox
Note: See TracChangeset for help on using the changeset viewer.