Skip to content

Commit

Permalink
Help find_library find zlib on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAce committed Jun 3, 2021
1 parent e257664 commit ad93862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/SetupDependenciesCMake.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ if(H5PP_PACKAGE_MANAGER MATCHES "cmake")
# Download HDF5 (and ZLIB and SZIP)
if(NOT szip_FOUND OR NOT TARGET szip-static)
set(SZIP_ROOT ${H5PP_DEPS_INSTALL_DIR} CACHE PATH "Default root path for SZIP installed by h5pp")
find_package(SZIP CONFIG NAMES szip sz COMPONENTS static
find_package(szip CONFIG NAMES szip sz COMPONENTS static
PATH_SUFFIXES share/cmake # Fixes bug in CMake 3.20.2 not generating search paths
NO_SYSTEM_ENVIRONMENT_PATH
NO_CMAKE_PACKAGE_REGISTRY
NO_CMAKE_SYSTEM_PATH
NO_CMAKE_SYSTEM_PACKAGE_REGISTRY)
if(szip_FOUND OR NOT TARGET szip-static)
install_package(szip "${H5PP_DEPS_INSTALL_DIR}" "")
find_package(SZIP CONFIG NAMES szip sz COMPONENTS static
find_package(szip CONFIG NAMES szip sz COMPONENTS static
PATH_SUFFIXES share/cmake # Fixes bug in CMake 3.20.2 not generating search paths
NO_SYSTEM_ENVIRONMENT_PATH
NO_CMAKE_SYSTEM_PATH
Expand Down

0 comments on commit ad93862

Please sign in to comment.