From 5ff3baf0dc814e7bc2f4209844d7da764bfd5f46 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Tue, 6 Sep 2022 17:33:38 +0200 Subject: python: Create .pyd on Windows --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ac71dfa..b16af1f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -546,6 +546,9 @@ if(LIBXML2_WITH_PYTHON) PREFIX lib VERSION ${PROJECT_VERSION} ) + if (WIN32) + set_target_properties(LibXml2Mod PROPERTIES SUFFIX ".pyd") + endif() install( TARGETS LibXml2Mod ARCHIVE DESTINATION ${LIBXML2_PYTHON_INSTALL_DIR} COMPONENT development -- cgit v1.2.1