From 5d418dcdf5faf708d61790ef19e56f8c30aa1c97 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Tue, 14 Aug 2007 07:16:00 +0000 Subject: Other clean svn path=/trunk/KDE/kdelibs/; revision=699883 --- modules/FindMusicBrainz.cmake | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'modules/FindMusicBrainz.cmake') diff --git a/modules/FindMusicBrainz.cmake b/modules/FindMusicBrainz.cmake index c4ccef80..a30e2973 100644 --- a/modules/FindMusicBrainz.cmake +++ b/modules/FindMusicBrainz.cmake @@ -6,17 +6,10 @@ # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -FIND_PATH(MUSICBRAINZ_INCLUDE_DIR musicbrainz/musicbrainz.h - /usr/include - /usr/local/include - ) - -if(MUSICBRAINZ_INCLUDE_DIR) - set(MUSICBRAINZ_FOUND TRUE) - MESSAGE( STATUS "music brainz found in <${MUSICBRAINZ_INCLUDE_DIR}>") -else(MUSICBRAINZ_INCLUDE_DIR) - MESSAGE( STATUS "music brainz not found") -endif(MUSICBRAINZ_INCLUDE_DIR) +FIND_PATH(MUSICBRAINZ_INCLUDE_DIR musicbrainz/musicbrainz.h) +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args( MusicBrainz DEFAULT_MSG + MUSICBRAINZ_INCLUDE_DIR) MARK_AS_ADVANCED(MUSICBRAINZ_INCLUDE_DIR) -- cgit v1.2.1