CMakeLists.txt
changeset 789 157427808b40
parent 749 64260c0f58eb
equal deleted inserted replaced
32:01326db4786e 33:e5e0c8780c05
    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."