diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-04-30 10:49:53 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-04-30 10:49:53 -0700 |
commit | 5316636fb9400bc68c7f014a851b6bff001bc5b3 (patch) | |
tree | aade8eb8d5e0c32d49b0cea90388d388df5a3e14 /mpm | |
parent | 2ef60a1b66aded5e967769bf31a97d21c693e805 (diff) | |
download | uhd-5316636fb9400bc68c7f014a851b6bff001bc5b3.tar.gz uhd-5316636fb9400bc68c7f014a851b6bff001bc5b3.tar.bz2 uhd-5316636fb9400bc68c7f014a851b6bff001bc5b3.zip |
mpm: Set C++ standard to C++14
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
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}) |