mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
enable -Werror only for 'libs' and 'dbms' ; add 'cmake .. -DNO_WERROR… (#372)
* enable -Werror only for 'libs' and 'dbms' ; add 'cmake .. -DNO_WERROR=1' option * add -Werror for utils
This commit is contained in:
parent
7201e2846a
commit
04d2149e8a
@ -50,7 +50,7 @@ if (NOT AARCH64)
|
||||
set (MACHINE_FLAGS "-msse4 -mpopcnt")
|
||||
endif ()
|
||||
|
||||
set (COMMON_WARNING_FLAGS "-Wall -Werror")
|
||||
set (COMMON_WARNING_FLAGS "-Wall")
|
||||
set (CXX_WARNING_FLAGS "-Wnon-virtual-dtor")
|
||||
|
||||
set (CXX11_ABI "ENABLE" CACHE STRING "Use C++11 ABI: DEFAULT, ENABLE, DISABLE")
|
||||
|
@ -15,6 +15,11 @@ if (NOT ENABLE_LIBTCMALLOC)
|
||||
add_definitions(-DNO_TCMALLOC)
|
||||
endif ()
|
||||
|
||||
if (NOT NO_WERROR)
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
||||
endif ()
|
||||
|
||||
add_subdirectory (src)
|
||||
|
||||
add_library(string_utils
|
||||
|
@ -1,3 +1,8 @@
|
||||
if (NOT NO_WERROR)
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
||||
endif ()
|
||||
|
||||
add_subdirectory (libcommon)
|
||||
add_subdirectory (libpocoext)
|
||||
add_subdirectory (libmysqlxx)
|
||||
|
@ -1,5 +1,10 @@
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/dbms_include.cmake)
|
||||
|
||||
if (NOT NO_WERROR)
|
||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
||||
endif ()
|
||||
|
||||
add_subdirectory (compressor)
|
||||
add_subdirectory (iotest)
|
||||
add_subdirectory (corrector_utf8)
|
||||
|
Loading…
Reference in New Issue
Block a user