$OpenBSD: patch-AkonadiConfig_cmake_in,v 1.1.1.1 2010/06/18 09:30:50 espie Exp $ --- AkonadiConfig.cmake.in.orig Wed Jun 16 17:28:30 2010 +++ AkonadiConfig.cmake.in Wed Jun 16 17:29:23 2010 @@ -22,15 +22,4 @@ set(AKONADI_LIB_DIR "@AKONADI_LIB_DIR@") set(AKONADI_SHARE_DIR "@SHARE_INSTALL_PREFIX@") set(AKONADI_XDG_MIME_INSTALL_DIR "@AKONADI_XDG_MIME_DIR@") -# Compatibility -if(WIN32) -if(MINGW) - set(AKONADI_COMMON_LIBRARIES "@AKONADI_LIB_DIR@/libakonadiprotocolinternals.dll.a") -else(MINGW) - set(AKONADI_COMMON_LIBRARIES "@AKONADI_LIB_DIR@/akonadiprotocolinternals.lib") -endif(MINGW) -elseif(APPLE) - set(AKONADI_COMMON_LIBRARIES "@AKONADI_LIB_DIR@/libakonadiprotocolinternals.dylib") -else() - set(AKONADI_COMMON_LIBRARIES "@AKONADI_LIB_DIR@/libakonadiprotocolinternals.so") -endif() +find_library(AKONADI_COMMON_LIBRARIES akonadiprotocolinternals @AKONADI_LIB_DIR@)