[llvm-branch-commits] [openmp] 8e5ee76 - [OpenMP][omptest] Fix CMake target properties (#176802)

Douglas Yung via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Mar 5 08:39:06 PST 2026


Author: Michael Halkenhäuser
Date: 2026-03-05T16:38:21Z
New Revision: 8e5ee76134b5aadbec71bcc4be86f6ee0479a465

URL: https://github.com/llvm/llvm-project/commit/8e5ee76134b5aadbec71bcc4be86f6ee0479a465
DIFF: https://github.com/llvm/llvm-project/commit/8e5ee76134b5aadbec71bcc4be86f6ee0479a465.diff

LOG: [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
(cherry picked from commit 696b91aeb7e55d5fbc82b2e6a625f2a7ca4a6911)

Added: 
    

Modified: 
    openmp/tools/omptest/CMakeLists.txt

Removed: 
    


################################################################################
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)


        


More information about the llvm-branch-commits mailing list