diff options
author | Laurent Montel <montel@kde.org> | 2007-12-05 08:07:27 +0000 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2007-12-05 08:07:27 +0000 |
commit | b16050ff748c703ab53f1a81035f5b77f74e5fc6 (patch) | |
tree | 1f10a5857a5141e717f2c2dce55ae7dc7c80888c | |
parent | 80cf7b857ae38ad933433dd977d408718fce7fe0 (diff) | |
download | extra-cmake-modules-b16050ff748c703ab53f1a81035f5b77f74e5fc6.tar.gz extra-cmake-modules-b16050ff748c703ab53f1a81035f5b77f74e5fc6.tar.bz2 |
Search lib too
svn path=/trunk/KDE/kdelibs/; revision=745044
-rw-r--r-- | modules/FindMusicBrainz.cmake | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/modules/FindMusicBrainz.cmake b/modules/FindMusicBrainz.cmake index a30e2973..e2e0d30d 100644 --- a/modules/FindMusicBrainz.cmake +++ b/modules/FindMusicBrainz.cmake @@ -6,10 +6,19 @@ # For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +if(MUSICBRAINZ_INCLUDE_DIR AND MUSICBRAINZ_LIBRARIES) + set(MUSICBRAINZ_FIND_QUIETLY TRUE) +endif(MUSICBRAINZ_INCLUDE_DIR AND MUSICBRAINZ_LIBRARIES) + FIND_PATH(MUSICBRAINZ_INCLUDE_DIR musicbrainz/musicbrainz.h) + +FIND_LIBRARY( MUSICBRAINZ_LIBRARIES NAMES musicbrainz) + + include(FindPackageHandleStandardArgs) find_package_handle_standard_args( MusicBrainz DEFAULT_MSG - MUSICBRAINZ_INCLUDE_DIR) + MUSICBRAINZ_INCLUDE_DIR MUSICBRAINZ_LIBRARIES) -MARK_AS_ADVANCED(MUSICBRAINZ_INCLUDE_DIR) +MARK_AS_ADVANCED(MUSICBRAINZ_INCLUDE_DIR MUSICBRAINZ_LIBRARIES) |