Commit ec4f705d authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix installation of xml2.lib when building with Visual Studio.

parent c53bddf2
......@@ -20,5 +20,10 @@
#
############################################################################
execute_process(COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${INSTALL_PREFIX}/lib/libxml2.dll.a" "${INSTALL_PREFIX}/lib/xml2.lib")
if(EXISTS ${INSTALL_PREFIX}/lib/libxml2.dll.a)
execute_process(COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${INSTALL_PREFIX}/lib/libxml2.dll.a" "${INSTALL_PREFIX}/lib/xml2.lib")
endif()
if(EXISTS ${INSTALL_PREFIX}/lib/libxml2.a)
execute_process(COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${INSTALL_PREFIX}/lib/libxml2.a" "${INSTALL_PREFIX}/lib/xml2.lib")
endif()
execute_process(COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${SOURCE_DIR}/builders/xml2/FindXML2.cmake" "${INSTALL_PREFIX}/share/cmake/Modules/FindXML2.cmake")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment