diff options
author | Brad King <brad.king@kitware.com> | 2017-05-11 13:58:33 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-05-11 13:59:04 (GMT) |
commit | 66b81d8ddd4f9696b549494ac6cac4ebe4ef2bb0 (patch) | |
tree | 74e6c53975cdc460655ab0e241bd0d97b9aa302d | |
parent | 4c638930b37c7f0e65e617f332f32b5323de9ee6 (diff) | |
parent | 67c9f47901f4b2b287c1bb46fe5c746ab0abbb95 (diff) | |
download | CMake-66b81d8ddd4f9696b549494ac6cac4ebe4ef2bb0.zip CMake-66b81d8ddd4f9696b549494ac6cac4ebe4ef2bb0.tar.gz CMake-66b81d8ddd4f9696b549494ac6cac4ebe4ef2bb0.tar.bz2 |
Merge topic 'fix-typo-in-pgi-lang-std'
67c9f479 PGI: Fix typo in compiler version test for language standards
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !825
-rw-r--r-- | Modules/Compiler/PGI-CXX.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/PGI-CXX.cmake b/Modules/Compiler/PGI-CXX.cmake index abc7349..35076bb 100644 --- a/Modules/Compiler/PGI-CXX.cmake +++ b/Modules/Compiler/PGI-CXX.cmake @@ -3,7 +3,7 @@ __compiler_pgi(CXX) string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " -DNDEBUG") string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " -DNDEBUG") -if(CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 12.10) +if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12.10) set(CMAKE_CXX98_STANDARD_COMPILE_OPTION -A) set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION --gnu_extensions) if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.10) |