]> www.ginac.de Git - ginac.git/commitdiff
Make FindCLN actually work without pkg-config.
authorAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Fri, 27 Jul 2012 19:04:54 +0000 (22:04 +0300)
committerAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Fri, 27 Jul 2012 19:22:46 +0000 (22:22 +0300)
cmake/modules/FindCLN.cmake

index 663d3850d16c49cf236a74deaca2ee2e9babc670..ee5fc5ca628206542d69d87b920e6c5e0f4bd760 100644 (file)
@@ -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)
        # 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}, "
                if (NOT CLN_FIND_QUIETLY)
                        message(ERROR "pkg-config and version.h disagree, "
                                      "${_cln_VERSION} vs ${CLN_VERSION}, "