diff options
author | Brad King <brad.king@kitware.com> | 2021-02-25 14:01:55 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-02-25 14:02:02 (GMT) |
commit | 6288974ba5dba82282ce4007d3121d0cbc04cc2d (patch) | |
tree | f158098929737fe2fdf75f5d3e794b24a0de4daa /Modules/Compiler | |
parent | 12cc87281f082fb6431368c69a42616188bf4dcf (diff) | |
parent | 72efd95add332161471c69a2f688f1ac459e4065 (diff) | |
download | CMake-6288974ba5dba82282ce4007d3121d0cbc04cc2d.zip CMake-6288974ba5dba82282ce4007d3121d0cbc04cc2d.tar.gz CMake-6288974ba5dba82282ce4007d3121d0cbc04cc2d.tar.bz2 |
Merge topic 'nvhpc-minor-fixes'
72efd95add PGI: Explicitly specify CMAKE_CXX98_STANDARD_COMPILE_OPTION
6bfb2c6175 HELP: Update compile-features documentation with missing compilers
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5857
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/PGI-CXX.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/PGI-CXX.cmake b/Modules/Compiler/PGI-CXX.cmake index 3254353..1279c19 100644 --- a/Modules/Compiler/PGI-CXX.cmake +++ b/Modules/Compiler/PGI-CXX.cmake @@ -8,6 +8,8 @@ if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12.10) set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION --gnu_extensions) set(CMAKE_CXX98_STANDARD__HAS_FULL_SUPPORT ON) if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.10) + set(CMAKE_CXX98_STANDARD_COMPILE_OPTION --c++03) + set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION --c++03 --gnu_extensions) set(CMAKE_CXX11_STANDARD_COMPILE_OPTION --c++11) set(CMAKE_CXX11_EXTENSION_COMPILE_OPTION --c++11 --gnu_extensions) set(CMAKE_CXX11_STANDARD__HAS_FULL_SUPPORT ON) |