]> www.ginac.de Git - ginac.git/blobdiff - cmake/modules/FindCLN.cmake
Make compile_ex() work with CMake.
[ginac.git] / 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)
-       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}, "