Browse Source

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-ecb5cbfe19
tags/v3.5.13
tpearson 7 years ago
parent
commit
54dec355e1
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      flow/gsl/CMakeLists.txt

+ 5
- 1
flow/gsl/CMakeLists.txt View File

@@ -63,7 +63,11 @@ if( WITH_MAD )
63 63
   if( MAD_FOUND )
64 64
     set( GSL_HAVE_LIBMAD 1 )
65 65
   else( MAD_FOUND )
66
-    message(FATAL_ERROR "\nMAD support are requested, but `libmad` not found" )
66
+    find_library( MAD_LIBRARIES NAMES mad )
67
+    find_path( MAD_INCLUDE_DIRS mad.h )
68
+    if( NOT MAD_LIBRARIES )
69
+        message(FATAL_ERROR "\nMAD support is requested, but `libmad` not found" )
70
+    endif( NOT MAD_LIBRARIES )
67 71
   endif( MAD_FOUND )
68 72
 
69 73
 endif( WITH_MAD )

Loading…
Cancel
Save