summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenACC.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FindOpenACC.cmake')
-rw-r--r--Modules/FindOpenACC.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindOpenACC.cmake b/Modules/FindOpenACC.cmake
index 00e42b8..436f5ea 100644
--- a/Modules/FindOpenACC.cmake
+++ b/Modules/FindOpenACC.cmake
@@ -294,9 +294,9 @@ foreach (LANG IN ITEMS C CXX Fortran)
endif()
if(OpenACC_${LANG}_FLAGS)
set_property(TARGET OpenACC::OpenACC_${LANG} PROPERTY
- INTERFACE_COMPILE_OPTIONS "$<$<COMPILE_LANGUAGE:${LANG}>:${OpenACC_${LANG}_OPTIONS}>")
+ INTERFACE_COMPILE_OPTIONS "$<$<COMPILE_LANGUAGE:${LANG}>:SHELL:${OpenACC_${LANG}_FLAGS}>")
set_property(TARGET OpenACC::OpenACC_${LANG} PROPERTY
- INTERFACE_LINK_OPTIONS "$<$<COMPILE_LANGUAGE:${LANG}>:${OpenACC_${LANG}_OPTIONS}>")
+ INTERFACE_LINK_OPTIONS "$<$<COMPILE_LANGUAGE:${LANG}>:SHELL:${OpenACC_${LANG}_FLAGS}>")
unset(_OpenACC_${LANG}_OPTIONS)
endif()
endforeach()