From 47522fcd15579cade744182eb0c714331ca230c7 Mon Sep 17 00:00:00 2001 From: Alexei Sheplyakov Date: Fri, 27 Jul 2012 22:04:54 +0300 Subject: [PATCH] Make FindCLN actually work without pkg-config. --- cmake/modules/FindCLN.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}, " -- 2.49.0