Re-enable warnings-as-errors (-Werror) in Mac builds.

master
Nat Goodspeed 2019-01-16 14:23:45 -05:00
parent a3b3ad727f
commit 1a1465dab9
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ endif (LINUX)
if (DARWIN)
# Warnings should be fatal -- thanks, Nicky Perian, for spotting reversed default
set(CLANG_DISABLE_FATAL_WARNINGS OFF)
set(CMAKE_CXX_LINK_FLAGS "-Wl,-headerpad_max_install_names,-search_paths_first")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_LINK_FLAGS}")
set(DARWIN_extra_cstar_flags "-Wno-unused-local-typedef -Wno-deprecated-declarations")