Index: openmp/libomptarget/plugins-nextgen/common/PluginInterface/CMakeLists.txt =================================================================== --- openmp/libomptarget/plugins-nextgen/common/PluginInterface/CMakeLists.txt +++ openmp/libomptarget/plugins-nextgen/common/PluginInterface/CMakeLists.txt @@ -19,7 +19,10 @@ # Define the DEBUG_PREFIX. add_definitions(-DDEBUG_PREFIX="PluginInterface") -set_property(TARGET PluginInterface PROPERTY POSITION_INDEPENDENT_CODE ON) +set_target_properties(PluginInterface PROPERTIES + POSITION_INDEPENDENT_CODE ON + CXX_VISIBILITY_PRESET protected) + llvm_update_compile_flags(PluginInterface) set(LINK_LLVM_LIBS LLVMSupport) if (LLVM_LINK_LLVM_DYLIB)