don't enable -Werror in ft-index

This commit is contained in:
Sergei Golubchik 2020-04-27 15:50:51 +02:00
parent ac2604f923
commit a13157a561

View File

@ -182,9 +182,9 @@ if (NOT CMAKE_CXX_COMPILER_ID STREQUAL Clang)
set_cflags_if_supported(-Wcast-align) set_cflags_if_supported(-Wcast-align)
endif () endif ()
## always want these ## never want these
set(CMAKE_C_FLAGS "-Wall -Werror ${CMAKE_C_FLAGS}") set(CMAKE_C_FLAGS "-Wno-error ${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "-Wall -Werror ${CMAKE_CXX_FLAGS}") set(CMAKE_CXX_FLAGS "-Wno-error ${CMAKE_CXX_FLAGS}")
## need to set -stdlib=libc++ to get real c++11 support on darwin ## need to set -stdlib=libc++ to get real c++11 support on darwin
if (APPLE) if (APPLE)