diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2019-04-15 16:38:03 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2019-04-15 16:38:03 (GMT) |
commit | 458ea9d76c42b982b48104e700d844a50dc4978c (patch) | |
tree | 82c231103a5be2bd50aba85049347ba8deaff6a0 /Modules/Compiler/XL-CXX.cmake | |
parent | d38d7747fe91db4753e9aa26e9b7dd8d065e1cdc (diff) | |
download | CMake-458ea9d76c42b982b48104e700d844a50dc4978c.zip CMake-458ea9d76c42b982b48104e700d844a50dc4978c.tar.gz CMake-458ea9d76c42b982b48104e700d844a50dc4978c.tar.bz2 |
XL: Add C++14 language level flags
Diffstat (limited to 'Modules/Compiler/XL-CXX.cmake')
-rw-r--r-- | Modules/Compiler/XL-CXX.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Compiler/XL-CXX.cmake b/Modules/Compiler/XL-CXX.cmake index ec3f1f8..3037851 100644 --- a/Modules/Compiler/XL-CXX.cmake +++ b/Modules/Compiler/XL-CXX.cmake @@ -18,6 +18,11 @@ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 10.1) set(CMAKE_CXX11_EXTENSION_COMPILE_OPTION "-qlanglvl=extended0x") set(CMAKE_CXX98_STANDARD__HAS_FULL_SUPPORT ON) set(CMAKE_CXX11_STANDARD__HAS_FULL_SUPPORT ON) + if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 16.1.0) + set(CMAKE_CXX14_STANDARD_COMPILE_OPTION "-qlanglvl=extended1y") + set(CMAKE_CXX14_EXTENSION_COMPILE_OPTION "-qlanglvl=extended1y") + set(CMAKE_CXX14_STANDARD__HAS_FULL_SUPPORT ON) + endif() endif () __compiler_check_default_language_standard(CXX 10.1 98) |