[Openmp-commits] [openmp] 85af772 - [Libomptarget][FIX] Fix unintentinally used PUBLIC interface

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Fri Mar 22 14:38:59 PDT 2024


Author: Joseph Huber
Date: 2024-03-22T16:38:51-05:00
New Revision: 85af772f3b4067fce703b33cee0e2cdafc74a6d6

URL: https://github.com/llvm/llvm-project/commit/85af772f3b4067fce703b33cee0e2cdafc74a6d6
DIFF: https://github.com/llvm/llvm-project/commit/85af772f3b4067fce703b33cee0e2cdafc74a6d6.diff

LOG: [Libomptarget][FIX] Fix unintentinally used PUBLIC interface

Summary:
This was supposed to be private and caused some issues with certain
configs.

Added: 
    

Modified: 
    openmp/libomptarget/plugins-nextgen/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins-nextgen/CMakeLists.txt b/openmp/libomptarget/plugins-nextgen/CMakeLists.txt
index 8e8b040fd56299..c19fd80592d6a2 100644
--- a/openmp/libomptarget/plugins-nextgen/CMakeLists.txt
+++ b/openmp/libomptarget/plugins-nextgen/CMakeLists.txt
@@ -47,7 +47,7 @@ function(add_target_library target_name lib_name)
   )
 
   llvm_update_compile_flags(${target_name})
-  target_link_libraries(${target_name} PUBLIC 
+  target_link_libraries(${target_name} PRIVATE
                         PluginCommon ${llvm_libs} ${OPENMP_PTHREAD_LIB})
 
   target_compile_definitions(${target_name} PRIVATE TARGET_NAME=${lib_name})


        


More information about the Openmp-commits mailing list