Skip to content

Commit

Permalink
Added missing ZLIB_ROOT option to CMake config of NetCDF (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-el-sayed authored Jun 14, 2023
1 parent a444767 commit 6ebc7ec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/install_netcdf_static.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,9 @@ $HDF5CMakeBuildOptions = @( `
'-DBUILD_TESTING:BOOL=OFF', `
'-DZLIB_USE_EXTERNAL:BOOL=OFF', `
'-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON', `
('-DZLIB_ROOT={0}' -f $ZLIBInstallDir), `
('-DZLIB_INCLUDE_DIR:PATH={0}' -f $ZlibIncludeDir), `
('-DZLIB_LIBRARY:FILEPATH={0}' -f $ZlibStaticLibrary)`
('-DZLIB_ROOT={0}' -f $ZLIBInstallDir), `
('-DZLIB_INCLUDE_DIR:PATH={0}' -f $ZlibIncludeDir), `
('-DZLIB_LIBRARY:FILEPATH={0}' -f $ZlibStaticLibrary) `
)

Invoke-BuildAndInstall `
Expand All @@ -345,7 +345,8 @@ $NetCDFCMakeBuildOptions = @(`
'-DBUILD_SHARED_LIBS=OFF', `
'-DENABLE_NETCDF_4=ON', `
'-DENABLE_DAP=OFF', `
'-DENABLE_BYTERANGE=OFF' `
'-DENABLE_BYTERANGE=OFF', `
('-DZLIB_ROOT={0}' -f $ZLIBInstallDir) `
)
if ($PSVersionTable.Platform -eq 'Unix') {
$NetCDFCMakeBuildOptions += '-DCMAKE_POSITION_INDEPENDENT_CODE=ON'
Expand Down

0 comments on commit 6ebc7ec

Please sign in to comment.