diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-07-19 13:00:51 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-07-19 13:00:51 (GMT) |
commit | c7770b8edbff442267563bd3036cef8fdb0cc4a9 (patch) | |
tree | 1c73f377e04981e72043a9ac5fff8fef0eca343b /Modules/FindMotif.cmake | |
parent | b6b1ebe2950e2437fffd4eecbe3f1992fc63e812 (diff) | |
download | CMake-c7770b8edbff442267563bd3036cef8fdb0cc4a9.zip CMake-c7770b8edbff442267563bd3036cef8fdb0cc4a9.tar.gz CMake-c7770b8edbff442267563bd3036cef8fdb0cc4a9.tar.bz2 |
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.cmake | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Modules/FindMotif.cmake b/Modules/FindMotif.cmake index 5c3871f..d5f83de 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 |