From aa3d45291d05b87675dcf9a53b6a485313f9f905 Mon Sep 17 00:00:00 2001 From: Thiago Alves Date: Thu, 10 Oct 2019 11:55:43 -0400 Subject: [PATCH] Another update to CMakeLists.txt --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e39f36..d41ee19 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,7 @@ set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG -finline-functions -flto") # GCC (Ubuntu 18.04 LTS Bionic Beaver) if(UNIX AND NOT APPLE) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated") endif(UNIX AND NOT APPLE) # GCC (Raspbian Buster for Raspberry Pi 4) @@ -78,6 +78,7 @@ endif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "armv7l") # Clang (macOS Mojave 10.14) if(APPLE) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-overloaded-virtual") include_directories(/usr/local/include) endif(APPLE)