Skip to content

Commit 3ec4c21

Browse files
committedOct 16, 2023
Make sure CMake links to installed libs, not system libs.
This is most relevant for the local M2 builds which would otherwise point to the system szip rather than the ones in installed.
1 parent 8f17114 commit 3ec4c21

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎build_macosx.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cd libaec
1515
cmake --install build
1616
cd -
1717

18-
./setup_hdf5.sh "${common}"
18+
./setup_hdf5.sh "${common} -DCMAKE_PREFIX_PATH=${install_dir}"
1919
cd libhdf5
2020
cmake --install build
2121
cd -

‎build_windows.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ cmake -S . -B build \
4545
-DHDF5_ENABLE_SZIP_SUPPORT=ON \
4646
-DBUILD_TESTING=OFF \
4747
-DUSE_LIBAEC=ON \
48-
-DCMAKE_INSTALL_PREFIX=${install_dir}
48+
-DCMAKE_INSTALL_PREFIX=${install_dir} \
49+
-DCMAKE_PREFIX_PATH=${install_dir}
4950

5051
cmake --build build --config Release
5152
cmake --install build

0 commit comments

Comments
 (0)
Please sign in to comment.