[OpenMP][omptest] Fix CMake target properties (#176802)

Fix visibility of target properties:
 * INCLUDE_DIRECTORIES
 * COMPILE_DEFINITIONS

implicitly pulled in from `default_gtest`.

Fixes: https://github.com/llvm/llvm-project/pull/159416
This commit is contained in:
Michael Halkenhäuser 2026-01-19 20:09:29 +01:00 committed by GitHub
parent 455de5543c
commit 696b91aeb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ if ((NOT LIBOMPTEST_BUILD_STANDALONE) OR LIBOMPTEST_BUILD_UNITTESTS)
# Link against the default GTest which at this point primarily pulls in the
# include directories and compile definitions. It is important to make these
# available to dependant targets, e.g. for unit tests.
target_link_libraries(omptest INTERFACE default_gtest)
target_link_libraries(omptest PUBLIC default_gtest)
# Link against Threads (recommended for GTest).
find_package(Threads REQUIRED)