diff -rupN poppler-0.60.1/CMakeLists.txt poppler-0.60.1-new/CMakeLists.txt --- poppler-0.60.1/CMakeLists.txt 2017-10-05 19:15:44.000000000 +0200 +++ poppler-0.60.1-new/CMakeLists.txt 2017-10-08 22:33:20.307773089 +0200 @@ -551,6 +551,9 @@ else() add_library(poppler ${poppler_SRCS}) endif() set_target_properties(poppler PROPERTIES VERSION 71.0.0 SOVERSION 71) +if(WIN32) + set_target_properties(poppler PROPERTIES SUFFIX "-71${CMAKE_SHARED_LIBRARY_SUFFIX}") +endif(WIN32) target_link_libraries(poppler LINK_PRIVATE ${poppler_LIBS}) install(TARGETS poppler RUNTIME DESTINATION bin LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX}) diff -rupN poppler-0.60.1/cpp/CMakeLists.txt poppler-0.60.1-new/cpp/CMakeLists.txt --- poppler-0.60.1/cpp/CMakeLists.txt 2017-10-05 19:15:44.000000000 +0200 +++ poppler-0.60.1-new/cpp/CMakeLists.txt 2017-10-08 22:33:41.990771890 +0200 @@ -24,6 +24,9 @@ set(poppler_cpp_SRCS add_library(poppler-cpp SHARED ${poppler_cpp_SRCS}) set_target_properties(poppler-cpp PROPERTIES VERSION 0.3.0 SOVERSION 0) +if(WIN32) + set_target_properties(poppler-cpp PROPERTIES SUFFIX "-0${CMAKE_SHARED_LIBRARY_SUFFIX}") +endif(WIN32) target_link_libraries(poppler-cpp poppler ${ICONV_LIBRARIES}) install(TARGETS poppler-cpp RUNTIME DESTINATION bin LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX}) diff -rupN poppler-0.60.1/glib/CMakeLists.txt poppler-0.60.1-new/glib/CMakeLists.txt --- poppler-0.60.1/glib/CMakeLists.txt 2017-10-05 19:15:44.000000000 +0200 +++ poppler-0.60.1-new/glib/CMakeLists.txt 2017-10-08 22:33:31.590772465 +0200 @@ -82,6 +82,9 @@ set(poppler_glib_generated_SRCS ) add_library(poppler-glib SHARED ${poppler_glib_SRCS} ${poppler_glib_generated_SRCS}) set_target_properties(poppler-glib PROPERTIES VERSION 8.9.0 SOVERSION 8) +if(WIN32) + set_target_properties(poppler-glib PROPERTIES SUFFIX "-8${CMAKE_SHARED_LIBRARY_SUFFIX}") +endif(WIN32) target_link_libraries(poppler-glib poppler ${GLIB2_LIBRARIES} ${CAIRO_LIBRARIES} ${FREETYPE_LIBRARIES}) if(HAVE_PTHREAD) target_link_libraries(poppler-glib -lpthread) diff -rupN poppler-0.60.1/qt4/src/CMakeLists.txt poppler-0.60.1-new/qt4/src/CMakeLists.txt --- poppler-0.60.1/qt4/src/CMakeLists.txt 2017-10-05 19:15:44.000000000 +0200 +++ poppler-0.60.1-new/qt4/src/CMakeLists.txt 2017-10-08 22:34:17.743769912 +0200 @@ -31,6 +31,9 @@ set(poppler_qt4_SRCS qt4_automoc(${poppler_qt4_SRCS}) add_library(poppler-qt4 SHARED ${poppler_qt4_SRCS}) set_target_properties(poppler-qt4 PROPERTIES VERSION 4.11.0 SOVERSION 4) +if(WIN32) + set_target_properties(poppler-qt4 PROPERTIES SUFFIX "-4${CMAKE_SHARED_LIBRARY_SUFFIX}") +endif(WIN32) target_link_libraries(poppler-qt4 poppler ${QT4_QTCORE_LIBRARY} ${QT4_QTGUI_LIBRARY} ${QT4_QTXML_LIBRARY}) if(MSVC) target_link_libraries(poppler-qt4 poppler ${poppler_LIBS}) diff -rupN poppler-0.60.1/qt5/src/CMakeLists.txt poppler-0.60.1-new/qt5/src/CMakeLists.txt --- poppler-0.60.1/qt5/src/CMakeLists.txt 2017-10-05 19:15:44.000000000 +0200 +++ poppler-0.60.1-new/qt5/src/CMakeLists.txt 2017-10-08 22:34:07.944770454 +0200 @@ -31,6 +31,9 @@ set(poppler_qt5_SRCS ) add_library(poppler-qt5 SHARED ${poppler_qt5_SRCS}) set_target_properties(poppler-qt5 PROPERTIES VERSION 1.11.0 SOVERSION 1) +if(WIN32) + set_target_properties(poppler-qt5 PROPERTIES SUFFIX "-1${CMAKE_SHARED_LIBRARY_SUFFIX}") +endif(WIN32) target_link_libraries(poppler-qt5 poppler ${Qt5Core_LIBRARIES} ${Qt5Gui_LIBRARIES} ${Qt5Xml_LIBRARIES}) if(MSVC) target_link_libraries(poppler-qt5 poppler ${poppler_LIBS})