From 67c9f47901f4b2b287c1bb46fe5c746ab0abbb95 Mon Sep 17 00:00:00 2001 From: Chuck Atkins Date: Wed, 10 May 2017 12:25:44 -0500 Subject: PGI: Fix typo in compiler version test for language standards --- Modules/Compiler/PGI-CXX.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12