aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2010-01-06 22:17:39 +0000
committerAlexander Neundorf <neundorf@kde.org>2010-01-06 22:17:39 +0000
commit028b0d21b6bcdad6ae71bb35748261af900d492c (patch)
tree8fda2a837655682d658769d2ffeb29029c5e4f73
parent139e74d81f6e0f7a50ba114328d97726b43d3497 (diff)
downloadextra-cmake-modules-028b0d21b6bcdad6ae71bb35748261af900d492c.tar.gz
extra-cmake-modules-028b0d21b6bcdad6ae71bb35748261af900d492c.tar.bz2
-setting QUIETLY manually is not necessary, this is handled automatically by find_package_handle_standard_args()
-the first argument to find_package_handle_standard_args() should be the exact-case name of the Find-module, i.e. "LibAttica", not "libattica" Frederik: if you really want to see this as "libattica", then the module has to be renamed to "Findlibattica.cmake", which is also ok and we still have the time to do it since this file has not been part of a release yet. Alex CCMAIL: <gladhorn@kde.org> CCMAIL: <vkrause@kde.org> svn path=/trunk/KDE/kdelibs/; revision=1070847
-rw-r--r--modules/FindLibAttica.cmake10
1 files changed, 2 insertions, 8 deletions
diff --git a/modules/FindLibAttica.cmake b/modules/FindLibAttica.cmake
index f901075a..b9b0610a 100644
--- a/modules/FindLibAttica.cmake
+++ b/modules/FindLibAttica.cmake
@@ -14,11 +14,6 @@ IF (NOT LIBATTICA_MIN_VERSION)
SET(LIBATTICA_MIN_VERSION "0.1.0")
ENDIF(NOT LIBATTICA_MIN_VERSION)
-IF (LIBATTICA_INCLUDE_DIR AND LIBATTICA_LIBRARIES)
- # in cache already
- SET(libattica_FIND_QUIETLY TRUE)
-ENDIF (LIBATTICA_INCLUDE_DIR AND LIBATTICA_LIBRARIES)
-
IF (NOT WIN32)
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
@@ -59,10 +54,9 @@ FIND_LIBRARY(LIBATTICA_LIBRARIES NAMES attica libattica
)
INCLUDE(FindPackageHandleStandardArgs)
-# handle the QUIETLY and REQUIRED arguments and set ATTICA_FOUND to TRUE if
+# handle the QUIETLY and REQUIRED arguments and set LIBATTICA_FOUND to TRUE if
# all listed variables are TRUE
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(libattica DEFAULT_MSG LIBATTICA_LIBRARIES LIBATTICA_INCLUDE_DIR LIBATTICA_VERSION_OK)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibAttica DEFAULT_MSG LIBATTICA_LIBRARIES LIBATTICA_INCLUDE_DIR LIBATTICA_VERSION_OK)
MARK_AS_ADVANCED(LIBATTICA_INCLUDE_DIR LIBATTICA_LIBRARIES)
-