diff options
-rw-r--r-- | modules/FindAvahi.cmake | 11 | ||||
-rw-r--r-- | modules/FindBerkeleyDB.cmake | 6 |
2 files changed, 5 insertions, 12 deletions
diff --git a/modules/FindAvahi.cmake b/modules/FindAvahi.cmake index 129e68a6..c6e055f0 100644 --- a/modules/FindAvahi.cmake +++ b/modules/FindAvahi.cmake @@ -6,17 +6,10 @@ # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -if (AVAHI_INCLUDE_DIR) - # Already in cache, be silent - set(Avahi_FIND_QUIETLY TRUE) -endif (AVAHI_INCLUDE_DIR) - - -FIND_PATH(AVAHI_INCLUDE_DIR avahi-common/defs.h) +find_path(AVAHI_INCLUDE_DIR avahi-common/defs.h) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Avahi DEFAULT_MSG AVAHI_INCLUDE_DIR) - -MARK_AS_ADVANCED(AVAHI_INCLUDE_DIR) +mark_as_advanced(AVAHI_INCLUDE_DIR) diff --git a/modules/FindBerkeleyDB.cmake b/modules/FindBerkeleyDB.cmake index 749f1664..021d9428 100644 --- a/modules/FindBerkeleyDB.cmake +++ b/modules/FindBerkeleyDB.cmake @@ -11,15 +11,15 @@ # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -FIND_PATH(BERKELEY_DB_INCLUDE_DIR db.h +find_path(BERKELEY_DB_INCLUDE_DIR db.h /usr/include/db4 /usr/local/include/db4 ) -FIND_LIBRARY(BERKELEY_DB_LIBRARIES NAMES db ) +find_library(BERKELEY_DB_LIBRARIES NAMES db ) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Berkeley "Could not find Berkeley DB >= 4.1" BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES) # show the BERKELEY_DB_INCLUDE_DIR and BERKELEY_DB_LIBRARIES variables only in the advanced view -MARK_AS_ADVANCED(BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES ) +mark_as_advanced(BERKELEY_DB_INCLUDE_DIR BERKELEY_DB_LIBRARIES ) |