Removed -O3 -g -Werror options from CmakeLists.txt.

Added -g -Werror options to .travis.yml.
This commit is contained in:
Takatoshi Kondo
2018-04-04 12:21:34 +09:00
parent c91307aaa1
commit 423eaf25fb
8 changed files with 11 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ FOREACH (source_file ${exec_PROGRAMS})
${MSGPACK_LIB}
)
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
SET_PROPERTY (TARGET ${source_file_we} APPEND_STRING PROPERTY COMPILE_FLAGS "-Wall -Wextra -Werror -g -O3")
SET_PROPERTY (TARGET ${source_file_we} APPEND_STRING PROPERTY COMPILE_FLAGS " -Wall -Wextra")
ENDIF ()
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")