diff options
author | Brad King <brad.king@kitware.com> | 2019-10-21 15:20:17 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-10-21 15:20:33 (GMT) |
commit | ede1bebd50af00fd6c657e6c5173cbaa71cb704c (patch) | |
tree | a72815316310d9eb0423b8a042311387ffb0a391 /Tests | |
parent | 61c6d49f5a2f3024aca81bb1535ab804f94adfba (diff) | |
parent | 409891baf77b909d414add64268d1e5530ff6086 (diff) | |
download | CMake-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.txt | 1 |
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}) |