From 3d8e855b13d282c95f78dbc19c7729182c93c21a Mon Sep 17 00:00:00 2001 From: Robert Braun Date: Tue, 22 Oct 2024 15:52:22 +0200 Subject: [PATCH] Attempt to link Xerces with MSVC --- dependencies/xerces.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dependencies/xerces.cmake b/dependencies/xerces.cmake index fca06e987..e6ae21387 100644 --- a/dependencies/xerces.cmake +++ b/dependencies/xerces.cmake @@ -13,10 +13,14 @@ if (NOT TARGET xercesc) add_library(xercesc STATIC IMPORTED) - if (WIN32) + if (MINGW) set_target_properties(xercesc PROPERTIES IMPORTED_LOCATION ${local_xerces_dir}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}xerces-c${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX} INTERFACE_INCLUDE_DIRECTORIES ${local_xerces_dir}/include) + elseif(MSVC) + set_target_properties(xercesc PROPERTIES + IMPORTED_LOCATION ${local_xerces_dir}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}xerces-c_3D${CMAKE_STATIC_LIBRARY_SUFFIX} + INTERFACE_INCLUDE_DIRECTORIES ${local_xerces_dir}/include) else() set_target_properties(xercesc PROPERTIES IMPORTED_LOCATION ${local_xerces_dir}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}xerces-c${CMAKE_SHARED_LIBRARY_SUFFIX}