From fb686867a5780958b1b72f9f0eefce63044f9210 Mon Sep 17 00:00:00 2001 From: Johannes Josef Junggeburth <johannes.josef.junggeburth@cern.ch> Date: Sat, 25 Jan 2025 12:44:25 +0100 Subject: [PATCH] IMPORTED? --- cmake/SetupXercesC.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/SetupXercesC.cmake b/cmake/SetupXercesC.cmake index 16e0db05..ff8ef4c5 100644 --- a/cmake/SetupXercesC.cmake +++ b/cmake/SetupXercesC.cmake @@ -39,7 +39,7 @@ if(GEOMODEL_USE_BUILTIN_XERCESC) INSTALL_COMMAND make install COMMAND ${CMAKE_COMMAND} -E remove -f "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/XercesCInstall/lib/${CMAKE_SHARED_LIBRARY_PREFIX}xerces-c.la" COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/XercesCInstall/lib/pkgconfig" - BUILD_BYPRODUCTS "${XercesC_INCLUDE_DIR}" ) + BUILD_BYPRODUCTS "${XercesC_INCLUDE_DIR}" "${XercesC_LIBRARY}" ) install(DIRECTORY "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/XercesCInstall/bin" @@ -53,7 +53,7 @@ if(GEOMODEL_USE_BUILTIN_XERCESC) USE_SOURCE_PERMISSIONS ) # Set up local XercesC "imported" target. - add_library(XercesC::XercesC UNKNOWN IMPORTED) + add_library(XercesC::XercesC SHARED IMPORTED) set_target_properties( XercesC::XercesC PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${XercesC_INCLUDE_DIR}" IMPORTED_LOCATION "${XercesC_LIBRARY}") -- GitLab