From: Alexei Sheplyakov Date: Fri, 27 Jul 2012 19:04:54 +0000 (+0300) Subject: Make FindCLN actually work without pkg-config. X-Git-Tag: release_1-6-3~55 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=47522fcd15579cade744182eb0c714331ca230c7 Make FindCLN actually work without pkg-config. --- diff --git a/cmake/modules/FindCLN.cmake b/cmake/modules/FindCLN.cmake index 663d3850..ee5fc5ca 100644 --- a/cmake/modules/FindCLN.cmake +++ b/cmake/modules/FindCLN.cmake @@ -59,7 +59,7 @@ if (CLN_INCLUDE_DIR) # as the one read from the header. This prevents us from # picking the wrong version of CLN (say, if several versions # are installed) - if (PKG_CONFIG_FOUND AND NOT CLN_VERSION VERSION_EQUAL _cln_VERSION) + if (_cln_FOUND AND NOT CLN_VERSION VERSION_EQUAL _cln_VERSION) if (NOT CLN_FIND_QUIETLY) message(ERROR "pkg-config and version.h disagree, " "${_cln_VERSION} vs ${CLN_VERSION}, "