summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-21 15:20:17 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-10-21 15:20:33 (GMT)
commitede1bebd50af00fd6c657e6c5173cbaa71cb704c (patch)
treea72815316310d9eb0423b8a042311387ffb0a391 /Tests
parent61c6d49f5a2f3024aca81bb1535ab804f94adfba (diff)
parent409891baf77b909d414add64268d1e5530ff6086 (diff)
downloadCMake-ede1bebd50af00fd6c657e6c5173cbaa71cb704c.zip
CMake-ede1bebd50af00fd6c657e6c5173cbaa71cb704c.tar.gz
CMake-ede1bebd50af00fd6c657e6c5173cbaa71cb704c.tar.bz2
Merge topic 'FindOpenMP-include-dir'
409891baf7 FindOpenMP: Allow try_compile() to find omp.h for AppleClang Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3916
Diffstat (limited to 'Tests')
-rw-r--r--Tests/FindOpenMP/Test/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/FindOpenMP/Test/CMakeLists.txt b/Tests/FindOpenMP/Test/CMakeLists.txt
index 2692947..ebdb6b8 100644
--- a/Tests/FindOpenMP/Test/CMakeLists.txt
+++ b/Tests/FindOpenMP/Test/CMakeLists.txt
@@ -42,6 +42,7 @@ foreach(c C CXX Fortran)
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}")
+ target_include_directories(test_var_${c} PRIVATE ${OpenMP_${c}_INCLUDE_DIRS})
set_property(TARGET test_var_${c} PROPERTY LINKER_LANGUAGE ${c})
add_test(NAME test_var_${c} COMMAND test_var_${c})