diff options
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 |