Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
karlosss committed Oct 16, 2024
1 parent f00f1b7 commit 32ba18e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: 'true'

- name: Build wheels
uses: pypa/[email protected]
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/swisspair_cpp"]
path = src/swisspair_cpp
url = https://github.com/karlosss/swisspair.git
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ project(

add_link_options(-lgmp)

add_subdirectory(swisspair)
add_subdirectory(swisspair/gmpwrap)
add_subdirectory(swisspair/Minimum-Cost-Perfect-Matching)
add_subdirectory(src/swisspair_cpp)
add_subdirectory(src/swisspair_cpp/gmpwrap)
add_subdirectory(src/swisspair_cpp/Minimum-Cost-Perfect-Matching)

# Find the module development requirements (requires FindPython from 3.17 or
# scikit-build-core's built-in backport)
Expand All @@ -35,7 +35,7 @@ find_package(pybind11 CONFIG REQUIRED)
# this)
python_add_library(_swisspair MODULE swisspair-python/src/bindings.cpp WITH_SOABI)
target_link_libraries(_swisspair PRIVATE pybind11::headers)
target_link_libraries(_swisspair PRIVATE swisspair)
target_link_libraries(_swisspair PRIVATE swisspair_cpp)
target_link_libraries(_swisspair PRIVATE gmpwrap)
target_link_libraries(_swisspair PRIVATE mincostpmatch)

Expand Down
1 change: 1 addition & 0 deletions src/swisspair_cpp
Submodule swisspair_cpp added at 50e03a

0 comments on commit 32ba18e

Please sign in to comment.