From 07637a0885a592bff940e342f3ec89725fe80ff1 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 10 Aug 2023 22:09:33 +0200 Subject: [PATCH] (Windows) Disabled Poppler DLL interface warnings when using MSVC --- es-pdf-converter/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/es-pdf-converter/CMakeLists.txt b/es-pdf-converter/CMakeLists.txt index 965d97f64..38291d1e1 100644 --- a/es-pdf-converter/CMakeLists.txt +++ b/es-pdf-converter/CMakeLists.txt @@ -12,6 +12,8 @@ if(WIN32) set(POPPLER_CPP_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../external/poppler/Library/include/poppler/cpp) if(CMAKE_CXX_COMPILER_ID MATCHES MSVC) set(POPPLER_CPP_LIBRARY ${CMAKE_CURRENT_SOURCE_DIR}/poppler-cpp.lib) + # Disable DLL interface warnings. + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4251") else() set(POPPLER_CPP_LIBRARY ${CMAKE_CURRENT_SOURCE_DIR}/libpoppler-cpp-0.dll) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -municode")