diff options
author | Christian Pfeiffer <cpfeiffer@live.de> | 2017-04-26 18:34:23 (GMT) |
---|---|---|
committer | Christian Pfeiffer <cpfeiffer@live.de> | 2017-04-26 18:34:23 (GMT) |
commit | 28d83837978aefc7f6e467b41ff792817da9ec95 (patch) | |
tree | 954372b01e564e88737c2f370384ca987f3ff06a /Modules/FindOpenMP.cmake | |
parent | 2a207aaca1d8414624dd4cfe8fcb19d03fe84546 (diff) | |
download | CMake-28d83837978aefc7f6e467b41ff792817da9ec95.zip CMake-28d83837978aefc7f6e467b41ff792817da9ec95.tar.gz CMake-28d83837978aefc7f6e467b41ff792817da9ec95.tar.bz2 |
separgs: Use NATIVE_COMMAND where appropriate
Diffstat (limited to 'Modules/FindOpenMP.cmake')
-rw-r--r-- | Modules/FindOpenMP.cmake | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake index 8c1b018..e7d9d5f 100644 --- a/Modules/FindOpenMP.cmake +++ b/Modules/FindOpenMP.cmake @@ -411,11 +411,7 @@ foreach(LANG IN ITEMS C CXX Fortran) add_library(OpenMP::OpenMP_${LANG} INTERFACE IMPORTED) endif() if(OpenMP_${LANG}_FLAGS) - if(CMAKE_HOST_WIN32) - separate_arguments(_OpenMP_${LANG}_OPTIONS WINDOWS_COMMAND "${OpenMP_${LANG}_FLAGS}") - else() - separate_arguments(_OpenMP_${LANG}_OPTIONS UNIX_COMMAND "${OpenMP_${LANG}_FLAGS}") - endif() + separate_arguments(_OpenMP_${LANG}_OPTIONS NATIVE_COMMAND "${OpenMP_${LANG}_FLAGS}") set_property(TARGET OpenMP::OpenMP_${LANG} PROPERTY INTERFACE_COMPILE_OPTIONS "${_OpenMP_${LANG}_OPTIONS}") unset(_OpenMP_${LANG}_OPTIONS) |