Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 8, 2009, 12:10:57 AM (16 years ago)
Author:
rgrieder
Message:

Cleanup in OrxonoxConfig.h.in. Made use of various CMake features like CheckInclude or CheckCompiles to determine some options and macros in the config header file.

Also removed util/Integers.h and placed the code directory in OrxonoxConfig.h.in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/cmake/BuildConfigMSVC.cmake

    r2626 r2639  
    2424 #
    2525
     26######################## Options ########################
     27
     28OPTION(ACTIVATE_VISUAL_LEAK_DETECTOR "Memory leak detector" FALSE)
     29
    2630#################### Compiler Flags #####################
    2731
     
    4246ADD_COMPILER_FLAGS("-D_CRT_SECURE_NO_WARNINGS" CACHE)
    4347ADD_COMPILER_FLAGS("-DUNICODE -D_UNICODE"      CACHE)
    44 ADD_COMPILER_FLAGS("-w44522 -w44251 -w44800"   CACHE)
     48
     49# Overwrite CMake default flags here.
     50SET_COMPILER_FLAGS("-MDd -Od -ZI -D_DEBUG -Gm -RTC1" Debug          CACHE)
     51SET_COMPILER_FLAGS("-MD  -O2     -DNDEBUG -MP2"      Release        CACHE)
     52SET_COMPILER_FLAGS("-MD  -O2 -Zi -DNDEBUG"           RelWithDebInfo CACHE)
     53SET_COMPILER_FLAGS("-MD  -O1     -DNDEBUG -MP2"      MinSizeRel     CACHE)
     54
     55
     56####################### Warnings ########################
    4557
    4658# Increase warning level if requested
     
    5365ENDIF()
    5466
    55 # Overwrite CMake default flags here.
    56 SET_COMPILER_FLAGS("-MDd -Od -ZI -D_DEBUG -Gm -RTC1" Debug          CACHE)
    57 SET_COMPILER_FLAGS("-MD  -O2     -DNDEBUG -MP2"      Release        CACHE)
    58 SET_COMPILER_FLAGS("-MD  -O2 -Zi -DNDEBUG"           RelWithDebInfo CACHE)
    59 SET_COMPILER_FLAGS("-MD  -O1     -DNDEBUG -MP2"      MinSizeRel     CACHE)
     67# "<type> needs to have dll-interface to be used by clients'
     68# Happens on STL member variables which are not public
     69ADD_COMPILER_FLAGS("-w44251" CACHE)
     70
     71# Multiple assignment operators specified
     72ADD_COMPILER_FLAGS("-w44522" CACHE)
     73
     74# Forcing values to bool
     75ADD_COMPILER_FLAGS("-w44800" CACHE)
     76
     77# This warns about truncation to 255 characters in debug/browse info
     78# ADD_COMPILER_FLAGS("-w44786 -w44503" CACHE)
     79
     80# conversion from 'double' to 'float', possible loss of data
     81# conversion from 'ogg_int64_t' to 'long', possible loss of data
     82# ADD_COMPILER_FLAGS("-w44244" CACHE)
     83
     84# "conversion from 'size_t' to 'unsigned int', possible loss of data
     85# ADD_COMPILER_FLAGS("-w44267" CACHE)
     86
     87# "truncation from 'double' to 'float'
     88# ADD_COMPILER_FLAGS("-w44305" CACHE)
     89
     90# "non dll-interface class used as base for dll-interface class"
     91# ADD_COMPILER_FLAGS("-w44275" CACHE)
     92
     93# "C++ Exception Specification ignored"
     94# This is because MSVC 6 did not implement all the C++ exception
     95# specifications in the ANSI C++ draft.
     96# ADD_COMPILER_FLAGS("-w44290" CACHE)
     97
     98# "no suitable definition provided for explicit template
     99# instantiation request" Occurs in VC7 for no justifiable reason.
     100# ADD_COMPILER_FLAGS("-w44661" CACHE)
     101
     102# Deprecation warnings when using CRT calls in VC8
     103# These show up on all C runtime lib code in VC8, disable since they clutter
     104# the warnings with things we may not be able to do anything about (e.g.
     105# generated code from nvparse etc). I doubt very much that these calls
     106# will ever be actually removed from VC anyway, it would break too much code.
     107# Note: Probably handled by "-DCRT_SECURE_NO_WARNINGS"
     108# ADD_COMPILER_FLAGS("-w44996" CACHE)
     109
     110# "conditional expression constant"
     111# ADD_COMPILER_FLAGS("-w4201" CACHE)
    60112
    61113
Note: See TracChangeset for help on using the changeset viewer.