From 0eeb5088431a1a70dc7439f828d2b10e5dc2a306 Mon Sep 17 00:00:00 2001 From: Keith Francois <francois.keith@lirmm.fr> Date: Tue, 17 Apr 2012 14:41:22 +0200 Subject: [PATCH] Correct the link with boost on Ubuntu 11.04. This does not affect the compilation on Ubuntu 10.04. --- src/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4c445e5..86fda6a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -35,10 +35,9 @@ ADD_LIBRARY(${LIBRARY_NAME} TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${PYTHON_LIBRARY}) -IF(APPLE) - TARGET_LINK_LIBRARIES(${LIBRARY_NAME} - ${Boost_LIBRARIES}) -ENDIF(APPLE) + +TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${Boost_LIBRARIES}) + SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION}) PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} dynamic-graph) -- GitLab