summaryrefslogtreecommitdiffstats
path: root/flow/gsl
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-22 20:37:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-22 20:37:12 +0000
commit54dec355e137f1efddb349314aef9bd999d4c3bf (patch)
treeb730346f0512b9dc47b5a82d94a45745b1de2b08 /flow/gsl
parentd82df56df57fe699f486bbabed0a06864bfc11d7 (diff)
downloadarts-54dec355e137f1efddb349314aef9bd999d4c3bf.tar.gz
arts-54dec355e137f1efddb349314aef9bd999d4c3bf.zip
arts: find libmad without pkgconfig
Thanks to "Nix" for the patch! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/arts@1242782 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'flow/gsl')
-rw-r--r--flow/gsl/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/flow/gsl/CMakeLists.txt b/flow/gsl/CMakeLists.txt
index 7c65553..2a95979 100644
--- a/flow/gsl/CMakeLists.txt
+++ b/flow/gsl/CMakeLists.txt
@@ -63,7 +63,11 @@ if( WITH_MAD )
if( MAD_FOUND )
set( GSL_HAVE_LIBMAD 1 )
else( MAD_FOUND )
- message(FATAL_ERROR "\nMAD support are requested, but `libmad` not found" )
+ find_library( MAD_LIBRARIES NAMES mad )
+ find_path( MAD_INCLUDE_DIRS mad.h )
+ if( NOT MAD_LIBRARIES )
+ message(FATAL_ERROR "\nMAD support is requested, but `libmad` not found" )
+ endif( NOT MAD_LIBRARIES )
endif( MAD_FOUND )
endif( WITH_MAD )