Skip to content

Commit

Permalink
Test thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Sep 22, 2024
1 parent 496189d commit 0f654d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ jobs:

- name: Install MPIR on Windows
if: matrix.os.name == 'Windows'
run: vcpkg install mpir:x64-windows-static
run: |
vcpkg install mpir:x64-windows-static
git clone https://github.com/Chia-Network/mpir_gc_x64.git
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
Expand Down
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ if(WIN32)
${MPIR_INCLUDE_DIR}
)
find_library(MPIR_LIBRARY NAMES mpir PATHS ${MPIR_LIBRARY_DIR} NO_DEFAULT_PATH)
if(MPIR_LIBRARY)
if(SKIP_MPIR_LINK)
message(STATUS "MPIR library found, skipping linking")
elseif(MPIR_LIBRARY)
message(STATUS "MPIR library found at ${MPIR_LIBRARY}")
link_libraries(${MPIR_LIBRARY})
elseif(SKIP_MPIR_LINK)
message(STATUS "MPIR library not found, skipping linking")
else()
message(FATAL_ERROR "MPIR library not found")
endif()
Expand Down

0 comments on commit 0f654d7

Please sign in to comment.