diff --git a/openmp/tools/omptest/CMakeLists.txt b/openmp/tools/omptest/CMakeLists.txt index 63bbd3d7adb84..98ca822367284 100644 --- a/openmp/tools/omptest/CMakeLists.txt +++ b/openmp/tools/omptest/CMakeLists.txt @@ -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)