From 36cc983c50037d77a1e77d3c4efd82e19d036f68 Mon Sep 17 00:00:00 2001 From: Luca Niccolini Date: Sun, 13 Sep 2020 20:53:10 -0700 Subject: [PATCH] c++17 Summary: https://github.com/lnicco/mvfst-qns/issues/4 Reviewed By: mjoras Differential Revision: D23675244 fbshipit-source-id: 8707bed66432f15e4984cae3610da03e1a22af02 --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e756c1dc6..7a6c16e9b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,10 @@ project( proxygen ) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) + set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" # for in-fbsource builds @@ -68,7 +72,6 @@ find_package(Boost 1.58 REQUIRED list(APPEND _PROXYGEN_COMMON_COMPILE_OPTIONS - -std=c++14 -Wall -Wextra )