From 43eb062ac572daf20a2636725ee9fdd90b453e79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Tue, 17 Jun 2025 20:25:50 -0400 Subject: [PATCH] build/cmake: use appropriate definitions for shared c lib --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 328df14f..ca6b09c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -607,7 +607,7 @@ if (OPENDHT_C) target_link_libraries(opendht-c PRIVATE opendht) if (BUILD_SHARED_LIBS) target_compile_definitions(opendht-c PRIVATE OPENDHT_C_BUILD) - target_compile_definitions(opendht-c PUBLIC opendht_EXPORTS) + target_compile_definitions(opendht-c PUBLIC opendht_c_EXPORTS) set_target_properties (opendht-c PROPERTIES SOVERSION ${opendht_VERSION_MAJOR} VERSION ${opendht_VERSION}) endif() install (TARGETS opendht-c DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT opendht-c) -- GitLab