summaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-07-28 11:26:14 -0700
committerJosh Blum <josh@joshknows.com>2011-07-28 11:26:14 -0700
commit8c824bf2e3e6758aff05ee4b5f4d3f106a13c672 (patch)
treeebe9da6646a9a4fab32fe034d2f6ac42c0d33f34 /cmake/Modules
parent152db0ca6a8771ab4c95a6d4410ca749085ec157 (diff)
cmake: added -ldl flag to cppunit when pkg config is used
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/FindCppUnit.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/Modules/FindCppUnit.cmake b/cmake/Modules/FindCppUnit.cmake
index bb06c3c11e..f986f35c61 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