summarylogtreecommitdiffstats
path: root/0003-Don-t-build-the-main-poppler-library.patch
blob: b38b8b0b62b6e97d46468320a37786fb5e016080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 08758cddd4d5749f2715534b28108420cb167b74 Mon Sep 17 00:00:00 2001
From: Paul Gideon Dann <pdgiddie@gmail.com>
Date: Tue, 1 Sep 2020 12:22:28 +0100
Subject: [PATCH 3/3] Don't build the main poppler library.

---
 CMakeLists.txt | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1573249a..67bd471d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -564,23 +564,6 @@ ADD_GPERF_FILE(TimesItalicWidths)
 ADD_GPERF_FILE(TimesRomanWidths)
 ADD_GPERF_FILE(ZapfDingbatsWidths)
 
-if(MSVC)
-add_definitions(-D_CRT_SECURE_NO_WARNINGS)
-add_library(poppler STATIC ${poppler_SRCS})
-else()
-add_library(poppler ${poppler_SRCS})
-endif()
-set_target_properties(poppler PROPERTIES VERSION 105.0.0 SOVERSION 105)
-if(MINGW AND BUILD_SHARED_LIBS)
-    get_target_property(POPPLER_SOVERSION poppler SOVERSION)
-    set_target_properties(poppler PROPERTIES SUFFIX "-${POPPLER_SOVERSION}${CMAKE_SHARED_LIBRARY_SUFFIX}")
-endif()
-target_link_libraries(poppler LINK_PRIVATE ${poppler_LIBS})
-if(CMAKE_USE_PTHREADS_INIT)
-   target_link_libraries(poppler LINK_PRIVATE Threads::Threads)
-endif()
-install(TARGETS poppler RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
-
 if(ENABLE_UNSTABLE_API_ABI_HEADERS)
   install(FILES
     poppler/Annot.h
-- 
2.29.2