diff options
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ae175807..34eeb266 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -454,7 +454,11 @@ if(ENABLE_LIBCURL) poppler/CurlCachedFile.cc poppler/CurlPDFDocBuilder.cc ) - set(poppler_LIBS ${poppler_LIBS} CURL::libcurl) + if(${CMAKE_VERSION} VERSION_LESS "3.12.0") + set(poppler_LIBS ${poppler_LIBS} ${CURL_LIBRARIES}) + else() + set(poppler_LIBS ${poppler_LIBS} CURL::libcurl) + endif() endif() if (ENABLE_NSS3) set(poppler_SRCS ${poppler_SRCS} |