Skip to content

Commit 884ff6a

Browse files
committed
Copy metadata.json when building on Windows
1 parent ceb7c17 commit 884ff6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build2cmake/src/templates/windows.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ function(add_local_install_target TARGET_NAME PACKAGE_NAME BUILD_VARIANT_NAME)
161161
${PYTHON_FILES}
162162
${LOCAL_INSTALL_DIR}/
163163

164+
# Copy metadata.json if it exists
165+
COMMAND ${CMAKE_COMMAND} -E copy_if_different
166+
${CMAKE_SOURCE_DIR}/metadata.json
167+
${LOCAL_INSTALL_DIR}/
168+
164169
COMMENT "Copying shared library and Python files to ${LOCAL_INSTALL_DIR}"
165170
COMMAND_EXPAND_LISTS
166171
)

0 commit comments

Comments
 (0)