diff options
author | Brad King <brad.king@kitware.com> | 2019-10-21 15:09:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-21 15:09:56 (GMT) |
commit | eaebd4fc47e9f438607b5585b8a67df146dab8f6 (patch) | |
tree | 318775b963f89c9b4ced8ec6116fb3bb21fbefea /Tests | |
parent | 308990b2bcf1a824cb641a31c7a63f0dbf8f7498 (diff) | |
parent | 409891baf77b909d414add64268d1e5530ff6086 (diff) | |
download | CMake-eaebd4fc47e9f438607b5585b8a67df146dab8f6.zip CMake-eaebd4fc47e9f438607b5585b8a67df146dab8f6.tar.gz CMake-eaebd4fc47e9f438607b5585b8a67df146dab8f6.tar.bz2 |
Merge branch 'FindOpenMP-include-dir' into release-3.16
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}) |