summaryrefslogtreecommitdiff
path: root/Modules/FindMotif.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-19 09:00:51 -0400
committerAlexander Neundorf <neundorf@kde.org>2007-07-19 09:00:51 -0400
commitc7770b8edbff442267563bd3036cef8fdb0cc4a9 (patch)
tree1c73f377e04981e72043a9ac5fff8fef0eca343b /Modules/FindMotif.cmake
parentb6b1ebe2950e2437fffd4eecbe3f1992fc63e812 (diff)
downloadcmake-c7770b8edbff442267563bd3036cef8fdb0cc4a9.tar.gz
ENH: use the new FIND_PACKAGE_HANDLE_STANDARD_ARGS() macro in most of the
not-too-complicated modules -remove unnecessary default search paths used in the FIND_XXX() calls Alex
Diffstat (limited to 'Modules/FindMotif.cmake')
-rw-r--r--Modules/FindMotif.cmake16
1 files changed, 7 insertions, 9 deletions
diff --git a/Modules/FindMotif.cmake b/Modules/FindMotif.cmake
index 5c3871fe96..d5f83de0d9 100644
--- a/Modules/FindMotif.cmake
+++ b/Modules/FindMotif.cmake
@@ -5,28 +5,26 @@
# MOTIF_LIBRARIES - Link these to use Motif
SET(MOTIF_FOUND 0)
+
IF(UNIX)
FIND_PATH(MOTIF_INCLUDE_DIR
Xm/Xm.h
- /usr/X11R6/include
- /usr/local/include
/usr/openwin/include
- /usr/include
)
FIND_LIBRARY(MOTIF_LIBRARIES
Xm
- /usr/X11R6/lib
- /usr/local/lib
/usr/openwin/lib
- /usr/lib
)
- IF(MOTIF_LIBRARIES AND MOTIF_INCLUDE_DIR)
- SET(MOTIF_FOUND 1)
- ENDIF(MOTIF_LIBRARIES AND MOTIF_INCLUDE_DIR)
ENDIF(UNIX)
+# handle the QUIETLY and REQUIRED arguments and set MOTIF_FOUND to TRUE if
+# all listed variables are TRUE
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(Motif MOTIF_LIBRARIES MOTIF_INCLUDE_DIR)
+
+
MARK_AS_ADVANCED(
MOTIF_INCLUDE_DIR
MOTIF_LIBRARIES