CMakeLists.txt
changeset 1096 6c8e2d8712d8
parent 964 2b6bffe0e7e8
parent 975 b873350e6258
child 1000 404b98971e1f
equal deleted inserted replaced
44:47f47de14d26 52:499524dc20f3
    64     # C4503: 'function' : decorated name length exceeded, name was truncated
    64     # C4503: 'function' : decorated name length exceeded, name was truncated
    65     # C4800: 'type' : forcing value to bool 'true' or 'false'
    65     # C4800: 'type' : forcing value to bool 'true' or 'false'
    66     #        (performance warning)
    66     #        (performance warning)
    67     # C4996: 'function': was declared deprecated
    67     # C4996: 'function': was declared deprecated
    68   ELSE()
    68   ELSE()
    69     SET(CXX_WARNING "-Wall -W")
    69     SET(CXX_WARNING "-Wall")
    70   ENDIF()
    70   ENDIF()
    71 ENDIF()
    71 ENDIF()
    72 SET(LEMON_CXX_WARNING_FLAGS ${CXX_WARNING} CACHE STRING "LEMON warning flags.")
    72 SET(LEMON_CXX_WARNING_FLAGS ${CXX_WARNING} CACHE STRING "LEMON warning flags.")
    73 
    73 
    74 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LEMON_CXX_WARNING_FLAGS}")
    74 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LEMON_CXX_WARNING_FLAGS}")
    75 
    75 
    76 SET( CMAKE_CXX_FLAGS_MAINTAINER "-Werror -ggdb" CACHE STRING
    76 SET( CMAKE_CXX_FLAGS_MAINTAINER "-Werror -ggdb -O0" CACHE STRING
    77     "Flags used by the C++ compiler during maintainer builds."
    77     "Flags used by the C++ compiler during maintainer builds."
    78     FORCE )
    78     FORCE )
    79 SET( CMAKE_C_FLAGS_MAINTAINER "-Werror" CACHE STRING
    79 SET( CMAKE_C_FLAGS_MAINTAINER "-Werror -O0" CACHE STRING
    80     "Flags used by the C compiler during maintainer builds."
    80     "Flags used by the C compiler during maintainer builds."
    81     FORCE )
    81     FORCE )
    82 SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER
    82 SET( CMAKE_EXE_LINKER_FLAGS_MAINTAINER
    83     "-Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING
    83     "-Wl,--warn-unresolved-symbols,--warn-once" CACHE STRING
    84     "Flags used for linking binaries during maintainer builds."
    84     "Flags used for linking binaries during maintainer builds."