From kde-buildsystem Fri Jan 30 11:55:19 2009 From: Hasso Tepper Date: Fri, 30 Jan 2009 11:55:19 +0000 To: kde-buildsystem Subject: Re: A problem linking phonon kded module Message-Id: <200901301355.20020.hasso () kde ! org> X-MARC-Message: https://marc.info/?l=kde-buildsystem&m=123331657614383 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-00=_oqugJJ3MYTPElZ4" --Boundary-00=_oqugJJ3MYTPElZ4 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hasso Tepper wrote: > And FindPulseAudio.cmake is not the only one, seems. At least > FindIDN.cmake in kdenetwork breaks the same way here. I rewrote the FindIDN.cmake getting inspiration from other cmake files using pkg-config. The result is attached. It's only tested on DragonFly though. If no one objects, I'll commit it in the weekend. regards, -- Hasso Tepper --Boundary-00=_oqugJJ3MYTPElZ4 Content-Type: text/plain; charset="iso 8859-13"; name="FindIDN.cmake" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="FindIDN.cmake" # cmake macro to test IDN library # Copyright (c) 2006, Will Stephenson # # IDN_FOUND - Test has found IDN dependencies # IDN_INCLUDE_DIR - Include needed for IDN # IDN_LIBRARIES - Libraries needed for IDN # IDN_DEFINITIONS - Compiler swithces required for using IDN # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if (IDN_INCLUDE_DIR AND IDN_LIBRARIES) # in cache set(IDN_FIND_QUIETLY TRUE) endif (IDN_INCLUDE_DIR AND IDN_LIBRARIES) if (NOT WIN32) FIND_PACKAGE(PkgConfig) PKG_CHECK_MODULES(PC_IDN libidn) set(IDN_DEFINITIONS ${PC_IDN_CFLAGS_OTHER}) endif (NOT WIN32) find_path(IDN_INCLUDE_DIR idna.h HINTS ${PC_IDN_INCLUDEDIR} ${PC_IDN_INCLUDE_DIRS} ) find_library(IDN_LIBRARIES NAMES idn libidn idn-11 libidn-11 HINTS ${PC_IDN_LIBDIR} ${PC_IDN_LIBRARY_DIRS} ) if (IDN_INCLUDE_DIR AND IDN_LIBRARIES) set(IDN_FOUND TRUE) else (IDN_INCLUDE_DIR AND IDN_LIBRARIES) set(IDN_FOUND FALSE) endif (IDN_INCLUDE_DIR AND IDN_LIBRARIES) if (IDN_FOUND) if (NOT IDN_FIND_QUIETLY) message("Found IDN libraries: ${IDN_LIBRARIES}") endif (NOT IDN_FIND_QUIETLY) else (IDN_FOUND) message(FATAL_ERROR "Required libidn not found") endif (IDN_FOUND) MARK_AS_ADVANCED(IDN_INCLUDE_DIR IDN_LIBRARIES) --Boundary-00=_oqugJJ3MYTPElZ4 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem --Boundary-00=_oqugJJ3MYTPElZ4--