summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2021-11-02 13:57:55 (GMT)
committerBrad King <brad.king@kitware.com>2021-11-02 18:33:18 (GMT)
commit92624714c4ab99fd14631c7a8b45d5efc02cdff9 (patch)
treec94ea885c9ab846489dcd5ec6e55edc73af0231e /Modules/Compiler
parent28a033cc7de056d1a74857606397bb294ebe27ac (diff)
downloadCMake-92624714c4ab99fd14631c7a8b45d5efc02cdff9.zip
CMake-92624714c4ab99fd14631c7a8b45d5efc02cdff9.tar.gz
CMake-92624714c4ab99fd14631c7a8b45d5efc02cdff9.tar.bz2
NVHPC: Support SYSTEM include directories
Fixed #22834
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/NVHPC.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/NVHPC.cmake b/Modules/Compiler/NVHPC.cmake
index 7048670..b51bb43 100644
--- a/Modules/Compiler/NVHPC.cmake
+++ b/Modules/Compiler/NVHPC.cmake
@@ -12,4 +12,5 @@ include(Compiler/PGI)
macro(__compiler_nvhpc lang)
# Logic specific to NVHPC.
+ set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")
endmacro()