Fix compiler option -Wno-dynamic-exception-spec

This commit is contained in:
proller 2017-04-17 18:57:50 +03:00
parent d2b070bb40
commit 5996800a73

View File

@ -19,12 +19,16 @@ add_definitions(
-fno-builtin-pvalloc -fno-builtin-pvalloc
) )
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 3.9)
add_definitions( -Wno-dynamic-exception-spec )
endif()
if(CMAKE_SYSTEM MATCHES "FreeBSD" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if(CMAKE_SYSTEM MATCHES "FreeBSD" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_definitions(-Wno-unused-but-set-variable) add_definitions(-Wno-unused-but-set-variable)
endif() endif()
if(CMAKE_SYSTEM MATCHES "FreeBSD") if(CMAKE_SYSTEM MATCHES "FreeBSD")
add_definitions(-D_GNU_SOURCE) add_definitions(-D_GNU_SOURCE)
endif() endif()
include_directories (include src) include_directories (include src)