diff options
author | Christian Pfeiffer <cpfeiffer@live.de> | 2018-01-19 13:09:32 (GMT) |
---|---|---|
committer | Christian Pfeiffer <cpfeiffer@live.de> | 2018-01-19 15:38:52 (GMT) |
commit | ffa6f8752b6928190c61ccb32f9c2776de422ad2 (patch) | |
tree | 265d6166a979f8be066808fd588dd91ac6b0034d /Modules/FindOpenMP.cmake | |
parent | be2f0509037880a94f487867bee088a231054f4b (diff) | |
download | CMake-ffa6f8752b6928190c61ccb32f9c2776de422ad2.zip CMake-ffa6f8752b6928190c61ccb32f9c2776de422ad2.tar.gz CMake-ffa6f8752b6928190c61ccb32f9c2776de422ad2.tar.bz2 |
FindOpenMP: Employ genex where possible
Fixes: #17610
Diffstat (limited to 'Modules/FindOpenMP.cmake')
-rw-r--r-- | Modules/FindOpenMP.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake index 893ddc6..ced092e 100644 --- a/Modules/FindOpenMP.cmake +++ b/Modules/FindOpenMP.cmake @@ -470,7 +470,7 @@ foreach(LANG IN LISTS OpenMP_FINDLIST) if(OpenMP_${LANG}_FLAGS) separate_arguments(_OpenMP_${LANG}_OPTIONS NATIVE_COMMAND "${OpenMP_${LANG}_FLAGS}") set_property(TARGET OpenMP::OpenMP_${LANG} PROPERTY - INTERFACE_COMPILE_OPTIONS "${_OpenMP_${LANG}_OPTIONS}") + INTERFACE_COMPILE_OPTIONS "$<$<COMPILE_LANGUAGE:${LANG}>:${_OpenMP_${LANG}_OPTIONS}>") unset(_OpenMP_${LANG}_OPTIONS) endif() if(OpenMP_${LANG}_LIBRARIES) |