summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2017-05-10 17:25:44 (GMT)
committerChuck Atkins <chuck.atkins@kitware.com>2017-05-10 17:25:44 (GMT)
commit67c9f47901f4b2b287c1bb46fe5c746ab0abbb95 (patch)
tree947534e475d3fbbf9ac65d6cb6df8e3ee048f53e /Modules/Compiler
parent8cc9e07a2ca7018feb0dbc286f1db23a4294eeec (diff)
downloadCMake-67c9f47901f4b2b287c1bb46fe5c746ab0abbb95.zip
CMake-67c9f47901f4b2b287c1bb46fe5c746ab0abbb95.tar.gz
CMake-67c9f47901f4b2b287c1bb46fe5c746ab0abbb95.tar.bz2
PGI: Fix typo in compiler version test for language standards
Diffstat (limited to 'Modules/Compiler')
-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)