From 261b3691e2c7ed049e40f71843ad3a44260de9dc Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Tue, 12 Aug 2008 07:49:48 +0000 Subject: -add Carbon to the "link interface" of kdecore on Mac, this fixes linking libkopete (and shouldn't hurt, if it does, please let me know) -handle standard argument handling to FindCarbon.cmake Alex svn path=/trunk/KDE/kdelibs/; revision=845637 --- modules/FindCarbon.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/FindCarbon.cmake b/modules/FindCarbon.cmake index de788f74..2b0d979e 100644 --- a/modules/FindCarbon.cmake +++ b/modules/FindCarbon.cmake @@ -8,11 +8,15 @@ # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -INCLUDE(CMakeFindFrameworks) +include(CMakeFindFrameworks) -CMAKE_FIND_FRAMEWORKS(Carbon) +cmake_find_frameworks(Carbon) if (Carbon_FRAMEWORKS) set(CARBON_LIBRARY "-framework Carbon" CACHE FILEPATH "Carbon framework" FORCE) set(CARBON_FOUND 1) endif (Carbon_FRAMEWORKS) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Carbon DEFAULT_MSG CARBON_LIBRARY) + -- cgit v1.2.1