[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/apps/cmake/modules
From: Alex Merry <kde () randomguy3 ! me ! uk>
Date: 2008-08-06 10:26:29
Message-ID: 1218018389.375880.21458.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 842960 by alexmerry:
Build with pciutils 3.0.0, which uses libresolv.
M +7 -2 FindPCIUTILS.cmake
--- trunk/KDE/kdebase/apps/cmake/modules/FindPCIUTILS.cmake #842959:842960
@@ -3,7 +3,7 @@
#
# PCIUTILS_FOUND - system has PCIUtils
# PCIUTILS_INCLUDE_DIR - the PCIUTILS include directory
-# PCIUTILS_LIBRARIES - The libraries needed to use FAM
+# PCIUTILS_LIBRARIES - The libraries needed to use PCIUtils
if(PCIUTILS_INCLUDE_DIR AND PCIUTILS_LIBRARIES)
set(PCIUTILS_FIND_QUIETLY TRUE)
@@ -11,8 +11,13 @@
FIND_PATH(PCIUTILS_INCLUDE_DIR pci/pci.h)
-FIND_LIBRARY(PCIUTILS_LIBRARIES NAMES pci )
+FIND_LIBRARY(PCIUTILS_LIBRARY NAMES pci)
+if(PCIUTILS_LIBRARY)
+ FIND_LIBRARY(RESOLV_LIBRARY NAMES resolv)
+ set(PCIUTILS_LIBRARIES ${PCIUTILS_LIBRARY} ${RESOLV_LIBRARY})
+endif(PCIUTILS_LIBRARY)
+
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCIUTILS DEFAULT_MSG PCIUTILS_LIBRARIES PCIUTILS_INCLUDE_DIR)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic