Skip to content

Commit 010a34e

Browse files
committedAug 15, 2024·
Use --frozen in Findzarrs.cmake
1 parent 50a0194 commit 010a34e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
 

‎CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111
- Add `Cargo.lock` to version control
1212

13+
### Changed
14+
- Use `--frozen` in `Findzarrs.cmake`
15+
1316
## [0.8.2] - 2024-08-13
1417

1518
### Added

‎examples/cmake_project/Findzarrs.cmake

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ FetchContent_Declare(zarrs_ffi_source
2020
FetchContent_Populate(zarrs_ffi_source)
2121

2222
# Fetch the dependencies at configure time using cargo fetch
23-
# get_property(CARGO_EXECUTABLE TARGET Rust::Cargo PROPERTY IMPORTED_LOCATION)
24-
# execute_process(COMMAND ${CARGO_EXECUTABLE} fetch WORKING_DIRECTORY ${zarrs_ffi_source_SOURCE_DIR})
23+
get_property(CARGO_EXECUTABLE TARGET Rust::Cargo PROPERTY IMPORTED_LOCATION)
24+
execute_process(COMMAND ${CARGO_EXECUTABLE} fetch WORKING_DIRECTORY ${zarrs_ffi_source_SOURCE_DIR})
2525

2626
# Build zarrs_ffi, creates a zarrs_ffi target aliased to zarrs::zarrs
27-
corrosion_import_crate(MANIFEST_PATH ${zarrs_ffi_source_SOURCE_DIR}/Cargo.toml FEATURES ${zarrs_FIND_COMPONENTS}) # FLAGS --offline
27+
corrosion_import_crate(MANIFEST_PATH ${zarrs_ffi_source_SOURCE_DIR}/Cargo.toml FEATURES ${zarrs_FIND_COMPONENTS} FLAGS --frozen)
2828
# corrosion_experimental_cbindgen(TARGET zarrs_ffi HEADER_NAME "zarrs.h") # not working
2929

3030
# add zarrs.h to include directories

0 commit comments

Comments
 (0)
Please sign in to comment.