2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 10:58:58 +00:00

Put spaces around version constraint in pkg-config (fixes #677)

Also add a pkg-config runtime test that would have caught the error.
This commit is contained in:
Jay Berkenbilt 2022-03-23 10:52:40 -04:00
parent 336062930d
commit f8e97e0ed5
2 changed files with 3 additions and 1 deletions

View File

@ -207,7 +207,7 @@ if(USE_IMPLICIT_CRYPTO OR REQUIRE_CRYPTO_OPENSSL)
if(pc_openssl_FOUND)
set(USE_CRYPTO_OPENSSL ON)
set(FOUND_CRYPTO ON)
set(CRYPTO_PKG "${CRYPTO_PKG}, openssl>=1.1.0")
set(CRYPTO_PKG "${CRYPTO_PKG}, openssl >= 1.1.0")
else()
find_path(OPENSSL_H_PATH openssl/evp.h)
find_library(OPENSSL_LIB_PATH crypto)

View File

@ -15,6 +15,8 @@ fi
cp pkg-test/qpdf-version.cc $TMP
cd $TMP
pkg-config libqpdf --modversion
pkg-config libqpdf --libs --static
g++ qpdf-version.cc -o qpdf-version \
$(pkg-config libqpdf --cflags) \
$(pkg-config libqpdf --libs)