|
|
@@ -41,10 +41,6 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
|
|
|
endif() |
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${C_CXX_FLAGS} -Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes") |
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ${C_CXX_FLAGS} -Wmissing-declarations") |
|
|
|
# Clang's integerated assembler does not support debug symbols. |
|
|
|
if(NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
|
|
|
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -Wa,-g") |
|
|
|
endif() |
|
|
|
elseif(MSVC) |
|
|
|
set(MSVC_DISABLED_WARNINGS_LIST |
|
|
|
"C4061" # enumerator 'identifier' in switch of enum 'enumeration' is not |
|
|
|