Skip to content

Commit cf15498

Browse files
committed
zlib build pic [skip ci]
1 parent d4c87b0 commit cf15498

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cmake/abi_check/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.1...3.23)
1+
cmake_minimum_required(VERSION 3.1...3.25)
22
project(abi_check LANGUAGES C Fortran)
33

44
enable_testing()

cmake/zlib.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ set(zlib_cmake_args
3434
-DCMAKE_BUILD_TYPE=Release
3535
-DZLIB_COMPAT:BOOL=on
3636
-DZLIB_ENABLE_TESTS:BOOL=off
37+
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON
3738
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
3839
)
40+
# NetCDF 4.9/4.6 needs fPIC
3941

4042
if(zlib_legacy)
4143
ExternalProject_Add(ZLIB

0 commit comments

Comments
 (0)