From 520396b21c31a348e934c6d3276ec7502b90f7c3 Mon Sep 17 00:00:00 2001
From: Pete Peterson <petersonpf@ornl.gov>
Date: Tue, 10 Jul 2018 13:41:41 -0400
Subject: [PATCH] Require c++14 flags in compilation

The [cmake documentation of `CXX_STANDARD_REQUIRED`](https://cmake.org/cmake/help/v3.5/prop_tgt/CXX_STANDARD_REQUIRED.html)
demonstrate that this was previously incorrectly set. This forces the
compiler flag to be specified. In the case of gcc 4.8 it sets
`-std=c++1y`. Newer gcc (since version 5) will sets `-std=c++14`.
---
 buildconfig/CMake/GNUSetup.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buildconfig/CMake/GNUSetup.cmake b/buildconfig/CMake/GNUSetup.cmake
index b9e36a1835f..1ef72fafd24 100644
--- a/buildconfig/CMake/GNUSetup.cmake
+++ b/buildconfig/CMake/GNUSetup.cmake
@@ -97,7 +97,7 @@ if(WITH_UBSAN)
 endif()
 
 set(CMAKE_CXX_STANDARD 14)
-set(CMAKE_CXX_STANDARD_REQUIRED 11)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
 
 # XCode isn't picking up the standard set above.
 if(CMAKE_GENERATOR STREQUAL Xcode)
-- 
GitLab