[Bug 701] cppunit needs to link against libdl (at least on some distros)

http://bugs.orocos.org/show_bug.cgi?id=701

Ruben Smits <ruben [dot] smits [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |ruben [dot] smits [..] ...en.b
| |e
Resolution| |FIXED

--- Comment #1 from Ruben Smits <ruben [dot] smits [..] ...> 2011-05-26 10:04:34 CEST ---
Fix available on
http://git.mech.kuleuven.be/robotics/orocos_kinematics_dynamics.git, branch
master

commit 2b8bb0b8f7c80da4163465c868105a466e4b1fb7
Author: Ruben Smits <ruben [dot] smits [..] ...>
Date: Thu May 26 10:03:00 2011 +0200

kdl: fix for bug 701: cppunit needs to link against libdl (at least on som

Signed-off-by: Ruben Smits <ruben [dot] smits [..] ...>

diff --git a/orocos_kdl/CMakeLists.txt b/orocos_kdl/CMakeLists.txt
index 1e4ba39..1e70b0c 100644
--- a/orocos_kdl/CMakeLists.txt
+++ b/orocos_kdl/CMakeLists.txt
@@ -60,6 +60,7 @@ IF( ENABLE_TESTS )
# export CMAKE_INCLUDE_PATH=/opt/local/include
# export CMAKE_LIBRARY_PATH=/opt/local/lib
FIND_LIBRARY(CPPUNIT cppunit)
+ SET(CPPUNIT ${CPPUNIT} "dl")
FIND_PATH(CPPUNIT_HEADERS cppunit/TestRunner.h)
IF ( CPPUNIT AND CPPUNIT_HEADERS)
MESSAGE("-- Looking for Cppunit - found")