enable C++11 for compiling N2P2 lib with PGI

This commit is contained in:
Axel Kohlmeyer 2021-05-22 11:19:54 -04:00
parent 14cb45c161
commit 42ef13bc06
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ if(DOWNLOAD_N2P2)
elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
set(N2P2_COMP gnu)
set(N2P2_CXX_STD "-std=c++11")
elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL "PGI")
set(N2P2_COMP gnu)
set(N2P2_CXX_STD "--c++11")
else() # default
set(N2P2_COMP "")
endif()