From 8c824bf2e3e6758aff05ee4b5f4d3f106a13c672 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 28 Jul 2011 11:26:14 -0700 Subject: cmake: added -ldl flag to cppunit when pkg config is used --- cmake/Modules/FindCppUnit.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/Modules/FindCppUnit.cmake b/cmake/Modules/FindCppUnit.cmake index bb06c3c11..f986f35c6 100644 --- a/cmake/Modules/FindCppUnit.cmake +++ b/cmake/Modules/FindCppUnit.cmake @@ -9,6 +9,7 @@ INCLUDE(FindPkgConfig) PKG_CHECK_MODULES(CPPUNIT "cppunit") +LIST(APPEND CPPUNIT_LIBRARIES ${CMAKE_DL_LIBS}) IF(NOT CPPUNIT_FOUND) FIND_PATH(CPPUNIT_INCLUDE_DIRS cppunit/TestCase.h -- cgit