summaryrefslogtreecommitdiffstats
path: root/Tests/FindOpenMP
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-04-26 18:34:23 (GMT)
committerChristian Pfeiffer <cpfeiffer@live.de>2017-04-26 18:34:23 (GMT)
commit28d83837978aefc7f6e467b41ff792817da9ec95 (patch)
tree954372b01e564e88737c2f370384ca987f3ff06a /Tests/FindOpenMP
parent2a207aaca1d8414624dd4cfe8fcb19d03fe84546 (diff)
downloadCMake-28d83837978aefc7f6e467b41ff792817da9ec95.zip
CMake-28d83837978aefc7f6e467b41ff792817da9ec95.tar.gz
CMake-28d83837978aefc7f6e467b41ff792817da9ec95.tar.bz2
separgs: Use NATIVE_COMMAND where appropriate
Diffstat (limited to 'Tests/FindOpenMP')
-rw-r--r--Tests/FindOpenMP/Test/CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/Tests/FindOpenMP/Test/CMakeLists.txt b/Tests/FindOpenMP/Test/CMakeLists.txt
index 4ba0e5c..6313ef6 100644
--- a/Tests/FindOpenMP/Test/CMakeLists.txt
+++ b/Tests/FindOpenMP/Test/CMakeLists.txt
@@ -39,11 +39,7 @@ foreach(c C CXX Fortran)
add_test(NAME test_tgt_${c} COMMAND test_tgt_${c})
add_executable(test_var_${c} ${OpenMPTEST_SOURCE_FILE})
- if(CMAKE_HOST_WIN32)
- separate_arguments(_OpenMP_${c}_OPTIONS WINDOWS_COMMAND "${OpenMP_${c}_FLAGS}")
- else()
- separate_arguments(_OpenMP_${c}_OPTIONS UNIX_COMMAND "${OpenMP_${c}_FLAGS}")
- endif()
+ separate_arguments(_OpenMP_${c}_OPTIONS NATIVE_COMMAND "${OpenMP_${c}_FLAGS}")
target_compile_options(test_var_${c} PRIVATE "${_OpenMP_${c}_OPTIONS}")
target_link_libraries(test_var_${c} PRIVATE "${OpenMP_${c}_FLAGS}")
set_property(TARGET test_var_${c} PROPERTY LINKER_LANGUAGE ${c})