Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/buildwheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: false
update: true
install: >-
mingw-w64-x86_64-gcc-fortran
mingw-w64-x86_64-ninja
Expand Down Expand Up @@ -365,10 +365,10 @@ jobs:
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: false
update: true
install: >-
mingw-w64-ucrt-x86_64-gcc
mingw-w64-ucrt-x86_64-ninja
mingw-w64-x86_64-gcc
mingw-w64-x86_64-ninja
m4

- if: matrix.os == 'windows-latest'
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,17 @@ set(PyPartMC_DIR "${PYPARTMC_CMAKE_DIR}")

find_package(PyPartMC REQUIRED)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@orzel320, IIUC, this should not be needed as all these symbols should be inside the PyPartMC library. Also, since this is only happening on Windows, the fix should likely only modify what happens on Windows.

execute_process(
COMMAND ${Python_EXECUTABLE} -m nanobind --cmake_dir
OUTPUT_VARIABLE nanobind_ROOT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
list(APPEND CMAKE_PREFIX_PATH "${nanobind_ROOT}")
find_package(nanobind CONFIG REQUIRED)
nanobind_build_library(nanobind-static)

add_executable(my_test test.cpp)
target_link_libraries(my_test PRIVATE PyPartMC::PyPartMC)
target_link_libraries(my_test PRIVATE PyPartMC::PyPartMC nanobind-static)
pypartmc_setup_runtime(my_test)

add_test(NAME maketest COMMAND my_test)
Expand Down
Loading