From 478a518590901cf3da0868ae553c4ed7f7cf54e1 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 24 Oct 2018 12:17:06 +0800 Subject: Disable extensions and force standard --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e4c09717..be14229e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,8 @@ if (CMAKE_VERSION VERSION_LESS "3.1") add_definitions(-std=c++11) else() set(CMAKE_CXX_STANDARD 11) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + set(CMAKE_CXX_EXTENSIONS OFF) endif() if (POLICY CMP0048) -- cgit v1.2.3