From 658b32784fbdf8f9c5bf984d52c79a0d3d699220 Mon Sep 17 00:00:00 2001 From: elsid Date: Wed, 31 Oct 2018 22:38:03 +0300 Subject: [PATCH] Add dependencies between libraries to allow linker to resolve symbols when build dynamic libraries --- DebugUtils/CMakeLists.txt | 5 +++++ DetourCrowd/CMakeLists.txt | 4 ++++ DetourTileCache/CMakeLists.txt | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/DebugUtils/CMakeLists.txt b/DebugUtils/CMakeLists.txt index 36ebc0d..52c1d2b 100644 --- a/DebugUtils/CMakeLists.txt +++ b/DebugUtils/CMakeLists.txt @@ -11,6 +11,11 @@ else() add_library(DebugUtils SHARED ${SOURCES}) endif() +target_link_libraries(DebugUtils + Recast + Detour +) + set_target_properties(DebugUtils PROPERTIES SOVERSION ${SOVERSION} VERSION ${VERSION} diff --git a/DetourCrowd/CMakeLists.txt b/DetourCrowd/CMakeLists.txt index 1931460..7eab20e 100644 --- a/DetourCrowd/CMakeLists.txt +++ b/DetourCrowd/CMakeLists.txt @@ -9,6 +9,10 @@ else () add_library(DetourCrowd SHARED ${SOURCES}) endif () +target_link_libraries(DetourCrowd + Detour +) + set_target_properties(DetourCrowd PROPERTIES SOVERSION ${SOVERSION} VERSION ${VERSION} diff --git a/DetourTileCache/CMakeLists.txt b/DetourTileCache/CMakeLists.txt index a8d68af..1760cf7 100644 --- a/DetourTileCache/CMakeLists.txt +++ b/DetourTileCache/CMakeLists.txt @@ -9,6 +9,10 @@ else () add_library(DetourTileCache SHARED ${SOURCES}) endif () +target_link_libraries(DetourTileCache + Detour +) + set_target_properties(DetourTileCache PROPERTIES SOVERSION ${SOVERSION} VERSION ${VERSION}