summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2011-07-28 11:26:14 -0700
committerJosh Blum2011-07-28 11:26:14 -0700
commit8c824bf2e3e6758aff05ee4b5f4d3f106a13c672 (patch)
treeebe9da6646a9a4fab32fe034d2f6ac42c0d33f34
parent152db0ca6a8771ab4c95a6d4410ca749085ec157 (diff)
downloadgnuradio-8c824bf2e3e6758aff05ee4b5f4d3f106a13c672.tar.gz
gnuradio-8c824bf2e3e6758aff05ee4b5f4d3f106a13c672.tar.bz2
gnuradio-8c824bf2e3e6758aff05ee4b5f4d3f106a13c672.zip
cmake: added -ldl flag to cppunit when pkg config is used
-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