You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.4 KiB
33 lines
1.4 KiB
include(Compiler/PGI)
|
|
__compiler_pgi(CXX)
|
|
string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
|
|
string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " -DNDEBUG")
|
|
|
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12.10)
|
|
set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "")
|
|
set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION --gnu_extensions)
|
|
set(CMAKE_CXX98_STANDARD__HAS_FULL_SUPPORT ON)
|
|
set(CMAKE_CXX_STANDARD_LATEST 98)
|
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.10)
|
|
set(CMAKE_CXX98_STANDARD_COMPILE_OPTION --c++03)
|
|
set(CMAKE_CXX98_EXTENSION_COMPILE_OPTION --c++03 --gnu_extensions)
|
|
set(CMAKE_CXX11_STANDARD_COMPILE_OPTION --c++11)
|
|
set(CMAKE_CXX11_EXTENSION_COMPILE_OPTION --c++11 --gnu_extensions)
|
|
set(CMAKE_CXX11_STANDARD__HAS_FULL_SUPPORT ON)
|
|
set(CMAKE_CXX_STANDARD_LATEST 11)
|
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 15.7)
|
|
set(CMAKE_CXX14_STANDARD_COMPILE_OPTION --c++14)
|
|
set(CMAKE_CXX14_EXTENSION_COMPILE_OPTION --c++14 --gnu_extensions)
|
|
set(CMAKE_CXX14_STANDARD__HAS_FULL_SUPPORT ON)
|
|
set(CMAKE_CXX_STANDARD_LATEST 14)
|
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 17.1)
|
|
set(CMAKE_CXX17_STANDARD_COMPILE_OPTION --c++17)
|
|
set(CMAKE_CXX17_EXTENSION_COMPILE_OPTION --c++17 --gnu_extensions)
|
|
set(CMAKE_CXX_STANDARD_LATEST 17)
|
|
endif()
|
|
endif()
|
|
endif()
|
|
endif()
|
|
|
|
__compiler_check_default_language_standard(CXX 12.10 98)
|