summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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