mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
NVHPC-CXX: Add support for C++20
This commit is contained in:
@@ -4,4 +4,9 @@ include(Compiler/NVHPC)
|
|||||||
# Needed so that we support `LANGUAGE` property correctly
|
# Needed so that we support `LANGUAGE` property correctly
|
||||||
set(CMAKE_CXX_COMPILE_OPTIONS_EXPLICIT_LANGUAGE -x c++)
|
set(CMAKE_CXX_COMPILE_OPTIONS_EXPLICIT_LANGUAGE -x c++)
|
||||||
|
|
||||||
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 20.11)
|
||||||
|
set(CMAKE_CXX20_STANDARD_COMPILE_OPTION -std=c++20)
|
||||||
|
set(CMAKE_CXX20_EXTENSION_COMPILE_OPTION -std=gnu++20)
|
||||||
|
endif()
|
||||||
|
|
||||||
__compiler_nvhpc(CXX)
|
__compiler_nvhpc(CXX)
|
||||||
|
|||||||
Reference in New Issue
Block a user