Silence some macOS build warnings

This commit is contained in:
2019-07-11 21:27:05 -07:00
parent f9e1304571
commit eaab2be917
2 changed files with 4 additions and 1 deletions

View File

@@ -51,6 +51,8 @@ macro (add_public_header)
endmacro()
IF(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-deprecated-declarations -Wno-c++11-extensions")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated -Wno-deprecated-declarations -Wno-c++11-extensions")
# SET(GUI_TYPE MACOSX_BUNDLE)
# INCLUDE_DIRECTORIES ( /Developer/Headers/FlatCarbon )
FIND_LIBRARY(APPKIT_LIBRARY AppKit)