Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 7e7b3d3

Browse files
authored
build: indicate the build byproducts for PythonKit (#1057)
Ensure that CMake is aware that the import library is a build byproduct so that it knows how to wire up the dependencies. This should repair the Windows build.
1 parent 0fd2a1e commit 7e7b3d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ if(ENABLE_PYTHON_SUPPORT)
9595
${CMAKE_COMMAND} -E copy_if_different <BINARY_DIR>/swift/PythonKit.swiftdoc ${CMAKE_Swift_MODULE_DIRECTORY}/
9696
BUILD_BYPRODUCTS
9797
<BINARY_DIR>/PythonKit/${CMAKE_SHARED_LIBRARY_PREFIX}PythonKit${CMAKE_SHARED_LIBRARY_SUFFIX}
98+
<BINARY_DIR>/PythonKit/${CMAKE_IMPORT_LIBRARY_PREFIX}PythonKit${CMAKE_IMPORT_LIBRARY_SUFFIX}
9899
UPDATE_DISCONNECTED
99100
TRUE
100101
STEP_TARGETS

0 commit comments

Comments
 (0)