summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2020-06-07 11:18:27 +0200
committerAlbert Astals Cid <aacid@kde.org>2020-06-07 11:18:56 +0200
commite3a48759464806565cfd332a9dac0d0a9e9086ba (patch)
tree8c0674f9f42addf14afb75e852e723614f858c9e
parentb58d77e92a6e627427073703e9120b2a94bde011 (diff)
fix running cmake with cmake < 3.12
-rw-r--r--CMakeLists.txt6
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}