diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-11-17 22:54:39 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-11-17 22:54:39 +0100 |
commit | 3dc6ff73cae64da97244e493905de7be40d1bcde (patch) | |
tree | 341e7a87ddc3090f9fdde69ed296bfbc193d4f46 /cmake | |
parent | 599a88da273ecaf00fec7cf9263a574ed44fef4f (diff) |
Handle PGI compiler
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/EigenTesting.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake index 8a995f118..4a34ddef5 100644 --- a/cmake/EigenTesting.cmake +++ b/cmake/EigenTesting.cmake @@ -549,6 +549,8 @@ macro(ei_get_compilerver VAR) else() set(${VAR} "na") endif() + elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "PGI") + set(${VAR} "${CMAKE_CXX_COMPILER_ID}-${CMAKE_CXX_COMPILER_VERSION}") else() # on all other system we rely on ${CMAKE_CXX_COMPILER} # supporting a "--version" or "/version" flag |