summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-05-11 13:58:33 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-05-11 13:59:04 (GMT)
commit66b81d8ddd4f9696b549494ac6cac4ebe4ef2bb0 (patch)
tree74e6c53975cdc460655ab0e241bd0d97b9aa302d
parent4c638930b37c7f0e65e617f332f32b5323de9ee6 (diff)
parent67c9f47901f4b2b287c1bb46fe5c746ab0abbb95 (diff)
downloadCMake-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.cmake2
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)