Skip to content

Commit

Permalink
Attempt to link Xerces with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
robbr48 committed Oct 22, 2024
1 parent 7f6cdf9 commit 3d8e855
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dependencies/xerces.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 3d8e855

Please sign in to comment.