From 26269dd24ac5203c67c9e3f35842190a58a890c5 Mon Sep 17 00:00:00 2001 From: "Francisco J. Solis" Date: Sat, 25 Jun 2022 22:48:19 -0500 Subject: [PATCH] Add C++14 Standard specification for CMake Change-Id: I3bd3001838ed5e792919a6e01725b90253944955 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 575271c1f..1a65ee428 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,6 +110,9 @@ if (EIGEN_FOUND) message("-- Found Eigen version ${EIGEN_VERSION}: ${EIGEN_INCLUDE_DIRS}") endif (EIGEN_FOUND) +# Use C++14 as the standard for compilation +set(CMAKE_CXX_STANDARD 14) + # Use a larger inlining threshold for Clang, since it hobbles Eigen, # resulting in an unreasonably slow version of the blas routines. The # -Qunused-arguments is needed because CMake passes the inline