From 513f18297c9914940d670a4a34ac4e58ad68918d Mon Sep 17 00:00:00 2001 From: Chao-Xue <106135778+Chao-Xue@users.noreply.github.com> Date: Mon, 15 May 2023 15:37:04 +0800 Subject: [PATCH] feat: fix installation failure with HDF5 --- third_party/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index d6f5c98fb..2c8950bbf 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -33,6 +33,7 @@ function(download_and_extract_library NAME EXT URL TYPE) endfunction() if(NNABLA_UTILS_WITH_HDF5) + set(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT OFF) download_and_extract_library(hdf5-master .zip https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_12_2.zip DIRECTORY) set(HDF5_EXTERNALLY_CONFIGURED, 1) set(HDF5_EXPORTED_TARGETS "nbla_utils-hdf5-targets")