CMakeLists.txt
changeset 1308 89e1877e335f
parent 1107 2b6bffe0e7e8
parent 1125 b873350e6258
child 1161 08712a8c3afe
child 1162 404b98971e1f
equal deleted inserted replaced
51:47f47de14d26 61: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."