From 5428218921df5929a92790e1567291ef268873e9 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Fri, 5 Jan 2024 21:25:38 +0100 Subject: [PATCH] Try with PUBLIC --- osmpbf/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osmpbf/CMakeLists.txt b/osmpbf/CMakeLists.txt index 80446f2..e91e314 100644 --- a/osmpbf/CMakeLists.txt +++ b/osmpbf/CMakeLists.txt @@ -9,7 +9,7 @@ install(TARGETS osmpbf ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) add_library(osmpbf_shared SHARED ${CPPS}) #set_property(TARGET osmpbf_shared PROPERTY CXX_STANDARD 11) target_compile_features(osmpbf_shared PUBLIC cxx_std_11) -target_link_libraries(osmpbf_shared PRIVATE protobuf::libprotobuf) +target_link_libraries(osmpbf_shared PUBLIC protobuf::libprotobuf) target_include_directories(osmpbf_shared SYSTEM PUBLIC ${Protobuf_INCLUDE_DIRS}) set_target_properties(osmpbf_shared PROPERTIES OUTPUT_NAME osmpbf VERSION ${PROJECT_VERSION}