mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Fix compiler option -Wno-dynamic-exception-spec
This commit is contained in:
parent
d2b070bb40
commit
5996800a73
@ -19,12 +19,16 @@ add_definitions(
|
||||
-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")
|
||||
add_definitions(-Wno-unused-but-set-variable)
|
||||
add_definitions(-Wno-unused-but-set-variable)
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM MATCHES "FreeBSD")
|
||||
add_definitions(-D_GNU_SOURCE)
|
||||
add_definitions(-D_GNU_SOURCE)
|
||||
endif()
|
||||
|
||||
include_directories (include src)
|
||||
|
Loading…
Reference in New Issue
Block a user