Skip to content
Snippets Groups Projects
Commit 43eb062a authored by Adrien Béraud's avatar Adrien Béraud
Browse files

build/cmake: use appropriate definitions for shared c lib

parent 29d878fa
No related branches found
No related tags found
No related merge requests found
...@@ -607,7 +607,7 @@ if (OPENDHT_C) ...@@ -607,7 +607,7 @@ if (OPENDHT_C)
target_link_libraries(opendht-c PRIVATE opendht) target_link_libraries(opendht-c PRIVATE opendht)
if (BUILD_SHARED_LIBS) if (BUILD_SHARED_LIBS)
target_compile_definitions(opendht-c PRIVATE OPENDHT_C_BUILD) 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}) set_target_properties (opendht-c PROPERTIES SOVERSION ${opendht_VERSION_MAJOR} VERSION ${opendht_VERSION})
endif() endif()
install (TARGETS opendht-c DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT opendht-c) install (TARGETS opendht-c DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT opendht-c)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment