summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-07-03 01:11:18 +0200
committerPetr Mrázek <peterix@gmail.com>2019-07-03 01:11:18 +0200
commitc01d020afc044e50ec3af0799572b42fa96f28fc (patch)
treef5fa2ac72aa5ab1907d4fdf628f1ea65ad3aac67 /CMakeLists.txt
parentee83d432f673d5263f208206e0a414f7b33bec70 (diff)
downloadMultiMC-c01d020afc044e50ec3af0799572b42fa96f28fc.tar
MultiMC-c01d020afc044e50ec3af0799572b42fa96f28fc.tar.gz
MultiMC-c01d020afc044e50ec3af0799572b42fa96f28fc.tar.lz
MultiMC-c01d020afc044e50ec3af0799572b42fa96f28fc.tar.xz
MultiMC-c01d020afc044e50ec3af0799572b42fa96f28fc.zip
GH-2723 disable deprecation warnings
We are targeting version 5.4 of the Qt ABI. Deprecations from 2019 are irrelevant.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9eefbb79..c297c348 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,7 +32,7 @@ set(CMAKE_C_STANDARD_REQUIRED true)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_C_STANDARD 11)
include(GenerateExportHeader)
-set(CMAKE_CXX_FLAGS " -Wall -pedantic -Werror -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector-strong --param=ssp-buffer-size=4 -O3 -D_FORTIFY_SOURCE=2 ${CMAKE_CXX_FLAGS}")
+set(CMAKE_CXX_FLAGS " -Wall -pedantic -Werror -Wno-deprecated-declarations -D_GLIBCXX_USE_CXX11_ABI=0 -fstack-protector-strong --param=ssp-buffer-size=4 -O3 -D_FORTIFY_SOURCE=2 ${CMAKE_CXX_FLAGS}")
if(UNIX AND APPLE)
set(CMAKE_CXX_FLAGS " -stdlib=libc++ ${CMAKE_CXX_FLAGS}")
endif()