summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorEisuke Kawashima <15070-e-kwsm@users.noreply.gitlab.kitware.com>2021-06-23 21:50:36 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-24 13:09:49 (GMT)
commitb3bf33539bd48797adb8c072ff883043fda7b09c (patch)
tree5f9c497c33cc42b864497171b89affc63d9720f7 /Modules
parent9a704fd37e42c4f68953ae87fea365a675b6c35d (diff)
downloadCMake-b3bf33539bd48797adb8c072ff883043fda7b09c.zip
CMake-b3bf33539bd48797adb8c072ff883043fda7b09c.tar.gz
CMake-b3bf33539bd48797adb8c072ff883043fda7b09c.tar.bz2
FindOpenMP: Link with OpenMP flags on Fujitsu
Fixes: #22332
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindOpenMP.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake
index e982e2d..929a809 100644
--- a/Modules/FindOpenMP.cmake
+++ b/Modules/FindOpenMP.cmake
@@ -570,6 +570,10 @@ foreach(LANG IN LISTS OpenMP_FINDLIST)
separate_arguments(_OpenMP_${LANG}_OPTIONS NATIVE_COMMAND "${OpenMP_${LANG}_FLAGS}")
set_property(TARGET OpenMP::OpenMP_${LANG} PROPERTY
INTERFACE_COMPILE_OPTIONS "$<$<COMPILE_LANGUAGE:${LANG}>:${_OpenMP_${LANG}_OPTIONS}>")
+ if(CMAKE_${LANG}_COMPILER_ID STREQUAL "Fujitsu")
+ set_property(TARGET OpenMP::OpenMP_${LANG} PROPERTY
+ INTERFACE_LINK_OPTIONS "${OpenMP_${LANG}_FLAGS}")
+ endif()
unset(_OpenMP_${LANG}_OPTIONS)
endif()
if(OpenMP_${LANG}_INCLUDE_DIRS)