diff options
author | Christian Pfeiffer <cpfeiffer@live.de> | 2018-01-22 14:17:00 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-01-22 14:17:06 (GMT) |
commit | c2bed75ebed14345cd1cf5f1e4c75eac6e8cb3ff (patch) | |
tree | 7ae7c3fcb8c068160c996049b6f2fa99084e5232 | |
parent | 5c3c70201d225359e235e53132788e6f75c2661b (diff) | |
parent | ffa6f8752b6928190c61ccb32f9c2776de422ad2 (diff) | |
download | CMake-c2bed75ebed14345cd1cf5f1e4c75eac6e8cb3ff.zip CMake-c2bed75ebed14345cd1cf5f1e4c75eac6e8cb3ff.tar.gz CMake-c2bed75ebed14345cd1cf5f1e4c75eac6e8cb3ff.tar.bz2 |
Merge topic 'findopenmp-genex'
ffa6f875 FindOpenMP: Employ genex where possible
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1676
-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) |