From 5316636fb9400bc68c7f014a851b6bff001bc5b3 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 30 Apr 2018 10:49:53 -0700 Subject: mpm: Set C++ standard to C++14 --- mpm/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mpm') diff --git a/mpm/CMakeLists.txt b/mpm/CMakeLists.txt index 1270aa719..6ae8e5204 100644 --- a/mpm/CMakeLists.txt +++ b/mpm/CMakeLists.txt @@ -125,7 +125,13 @@ SET(PKG_MAN_DIR share/man/man1) ######################################################################## # Setup library configuration ######################################################################## -SET(CMAKE_CXX_STANDARD 11) +SET(CMAKE_CXX_STANDARD 14) +include(CheckCXXCompilerFlag) +CHECK_CXX_COMPILER_FLAG("-Wno-psabi" _has_no_psabi) +if(_has_no_psabi) + MESSAGE(STATUS "Disabling psABI warnings.") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-psabi") +endif(_has_no_psabi) SET(MPM_ALL_DEVICES n3xx tests) SET(MPM_DEVICE "n3xx" CACHE STRING "Choose an MPM device to build") SET_PROPERTY(CACHE MPM_DEVICE PROPERTY STRINGS ${MPM_ALL_DEVICES}) -- cgit v1.2.3