diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-01-05 22:44:22 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-01-05 22:44:22 +0000 |
commit | 89e3d1113d95b015075e0f90bcb8e13befa4158b (patch) | |
tree | 0f1156de79d39cd63c2129487664d500bcc21fa8 | |
parent | 1da145531916baeb0a69d264968c519c1ff6ee39 (diff) | |
download | extra-cmake-modules-89e3d1113d95b015075e0f90bcb8e13befa4158b.tar.gz extra-cmake-modules-89e3d1113d95b015075e0f90bcb8e13befa4158b.tar.bz2 |
-no need to specify /usr/lib and /usr/local/lib
-why are the two vars set to empty if not found instead of leaving them on "NOTFOUND" ?
Alex
svn path=/trunk/KDE/kdelibs/; revision=620406
-rw-r--r-- | modules/FindDNSSD.cmake | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/FindDNSSD.cmake b/modules/FindDNSSD.cmake index fcbeecf2..2e62255f 100644 --- a/modules/FindDNSSD.cmake +++ b/modules/FindDNSSD.cmake @@ -7,7 +7,7 @@ # DNSSD_DEFINITIONS - Compiler switches required for using DNSSD # # need more test: look at into dnssd/configure.in.in -# + # Copyright (c) 2006, Laurent Montel, <montel@kde.org> # # Redistribution and use is allowed according to the terms of the BSD license. @@ -22,11 +22,7 @@ FIND_PATH(DNSSD_INCLUDE_DIR dns_sd.h if (APPLE) set(DNSSD_LIBRARIES "/usr/lib/libSystem.dylib") else (APPLE) - FIND_LIBRARY(DNSSD_LIBRARIES NAMES dns_sd - PATHS - /usr/lib - /usr/local/lib - ) + FIND_LIBRARY(DNSSD_LIBRARIES NAMES dns_sd ) endif (APPLE) if (DNSSD_INCLUDE_DIR AND DNSSD_LIBRARIES) @@ -38,7 +34,7 @@ if (DNSSD_FOUND) message(STATUS "Found DNSSD: ${DNSSD_LIBRARIES}") endif (NOT DNSSD_FIND_QUIETLY) else (DNSSD_FOUND) - set(DNSSD_INCLUDE_DIR "") + set(DNSSD_INCLUDE_DIR "") # this is not good, leaving it on "NOTFOUND" is better, why was it changed ? Alex set(DNSSD_LIBRARIES "") if (DNSSD_FIND_REQUIRED) message(FATAL_ERROR "Could NOT find DNSSD") |