aboutsummaryrefslogtreecommitdiff
path: root/modules/FindPlasma.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-06-05 01:41:47 +0000
committerAlexander Neundorf <neundorf@kde.org>2007-06-05 01:41:47 +0000
commit00db3e5a85410ec7cfba9b08c3976b5a217d5797 (patch)
tree3cfe53e189660bec3811b7134d933f86c7514b65 /modules/FindPlasma.cmake
parent373ce9910858ba84288e00b32d701a05d0b02e47 (diff)
downloadextra-cmake-modules-00db3e5a85410ec7cfba9b08c3976b5a217d5797.tar.gz
extra-cmake-modules-00db3e5a85410ec7cfba9b08c3976b5a217d5797.tar.bz2
-/usr/lib, /usr/local/lib, /usr/include, /usr/local/include don't have to be listed explicitely, they are searched automatically
-some more consisten lower casing and indentation Alex svn path=/trunk/KDE/kdelibs/; revision=671570
Diffstat (limited to 'modules/FindPlasma.cmake')
-rw-r--r--modules/FindPlasma.cmake18
1 files changed, 7 insertions, 11 deletions
diff --git a/modules/FindPlasma.cmake b/modules/FindPlasma.cmake
index 00e8a084..f256a453 100644
--- a/modules/FindPlasma.cmake
+++ b/modules/FindPlasma.cmake
@@ -14,18 +14,14 @@ if (PLASMA_INCLUDE_DIR)
endif (PLASMA_INCLUDE_DIR)
-FIND_PATH(PLASMA_INCLUDE_DIR NAMES plasma/kpanelapplet.h
- PATHS
- ${INCLUDE_INSTALL_DIR}
- /usr/include
- /usr/local/include
+find_path(PLASMA_INCLUDE_DIR NAMES plasma/kpanelapplet.h
+ PATHS
+ ${INCLUDE_INSTALL_DIR}
)
-FIND_LIBRARY(PLASMA_LIBRARIES NAMES plasma
- PATHS
- ${LIB_INSTALL_DIR}
- /usr/lib
- /usr/local/lib
+find_library(PLASMA_LIBRARIES NAMES plasma
+ PATHS
+ ${LIB_INSTALL_DIR}
)
if (PLASMA_LIBRARIES AND PLASMA_INCLUDE_DIR)
set(PLASMA_FOUND TRUE)
@@ -41,4 +37,4 @@ else (PLASMA_FOUND)
endif (Plasma_FIND_REQUIRED)
endif (PLASMA_FOUND)
-MARK_AS_ADVANCED(PLASMA_INCLUDE_DIR PLASMA_LIBRARIES)
+mark_as_advanced(PLASMA_INCLUDE_DIR PLASMA_LIBRARIES)