Skip to content

Commit aa3d452

Browse files
committed
Another update to CMakeLists.txt
1 parent f02036f commit aa3d452

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG -finline-functions -flto")
6868

6969
# GCC (Ubuntu 18.04 LTS Bionic Beaver)
7070
if(UNIX AND NOT APPLE)
71-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
71+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
7272
endif(UNIX AND NOT APPLE)
7373

7474
# GCC (Raspbian Buster for Raspberry Pi 4)
@@ -78,6 +78,7 @@ endif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "armv7l")
7878

7979
# Clang (macOS Mojave 10.14)
8080
if(APPLE)
81+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
8182
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-overloaded-virtual")
8283
include_directories(/usr/local/include)
8384
endif(APPLE)

0 commit comments

Comments
 (0)