From b54dc4769396eafd03b3c975dbe1a745ebb12b9a Mon Sep 17 00:00:00 2001 From: Paul Gideon Dann Date: Tue, 20 Oct 2009 18:32:35 +0100 Subject: [PATCH 4/4] Don't build the main poppler library. --- CMakeLists.txt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d49721c..a81aa29b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -483,23 +483,6 @@ if(TIFF_FOUND) set(poppler_LIBS ${poppler_LIBS} ${TIFF_LIBRARIES}) endif() -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 85.0.0 SOVERSION 85) -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.20.1