Skip to content

Commit bb14eb8

Browse files
committed
Update CMakeLists.txt and pyproject.toml for vcpkg integration and Windows repair command
1 parent 9f43782 commit bb14eb8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ project(_cmd)
5555
if (${PLATFORM} STREQUAL "WINDOWS")
5656
message("Running Windows build")
5757
add_library(opengl32 STATIC IMPORTED)
58-
set_target_properties(opengl32 PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/pre-built/windows/libx64/OpenGL32.Lib)
58+
set_target_properties(opengl32 PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/vcpkg_installed/${VCPKG_TARGET_TRIPLET}/lib/OpenGL32.Lib)
5959

6060
set(LIB_DIR
6161
${CMAKE_SOURCE_DIR}/vcpkg_installed/${VCPKG_TARGET_TRIPLET}/lib

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,11 @@ VCPKG_ROOT = "{project}/vendor/vcpkg"
7979
before-all = "yum install -y perl perl-IPC-Cmd zip"
8080
#manylinux-x86_64-image = "manylinux2014"
8181
manylinux-x86_64-image = "manylinux_2_28"
82+
83+
[tool.cibuildwheel.windows]
84+
repair-wheel-command = """\
85+
delvewheel repair \
86+
-v \
87+
--wheel-dir={dest_dir} \
88+
{wheel} \
89+
"""

0 commit comments

Comments
 (0)