Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 696b91a

Browse files
authored
[OpenMP][omptest] Fix CMake target properties (#176802)
Fix visibility of target properties: * INCLUDE_DIRECTORIES * COMPILE_DEFINITIONS implicitly pulled in from `default_gtest`. Fixes: #159416
1 parent 455de55 commit 696b91a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openmp/tools/omptest/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ if ((NOT LIBOMPTEST_BUILD_STANDALONE) OR LIBOMPTEST_BUILD_UNITTESTS)
8585
# Link against the default GTest which at this point primarily pulls in the
8686
# include directories and compile definitions. It is important to make these
8787
# available to dependant targets, e.g. for unit tests.
88-
target_link_libraries(omptest INTERFACE default_gtest)
88+
target_link_libraries(omptest PUBLIC default_gtest)
8989

9090
# Link against Threads (recommended for GTest).
9191
find_package(Threads REQUIRED)

0 commit comments

Comments
 (0)