534e822325fde547ff448cbe993ee87781ec0f1f
[platform/upstream/cmake.git] / Modules / Compiler / NVHPC-CXX.cmake
1 include(Compiler/PGI-CXX)
2 include(Compiler/NVHPC)
3
4 # Needed so that we support `LANGUAGE` property correctly
5 set(CMAKE_CXX_COMPILE_OPTIONS_EXPLICIT_LANGUAGE -x c++)
6
7 if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 20.11)
8   set(CMAKE_CXX20_STANDARD_COMPILE_OPTION  -std=c++20)
9   set(CMAKE_CXX20_EXTENSION_COMPILE_OPTION -std=gnu++20)
10 endif()
11
12 __compiler_nvhpc(CXX)