Skip to content

Commit

Permalink
reduce repeat print
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Sep 16, 2020
1 parent 731ba34 commit 23846c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmake/build_hdf5.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ if(IS_DIRECTORY ${HDF5_ROOT})
set(_cmd1 "")
set(_cmd2 "")
else()
message(STATUS "installing HDF5 library in ${HDF5_ROOT}")
set(_cmd0 ${CMAKE_CURRENT_BINARY_DIR}/HDF5_proj-prefix/src/HDF5_proj/configure --prefix=${HDF5_ROOT} --enable-fortran --enable-build-mode=production --disable-tests --disable-tools --disable-shared)
set(_cmd1 make -j)
set(_cmd2 make -j install)
Expand All @@ -30,14 +31,10 @@ BUILD_BYPRODUCTS "${HDF5_LIBRARIES}"
INSTALL_COMMAND "${_cmd2}"
)

message(STATUS "installing HDF5 library in ${HDF5_ROOT}")

file(MAKE_DIRECTORY ${HDF5_ROOT}/include) # avoid race condition

add_dependencies(h5fortran HDF5_proj) # ensure HDF5 builds first



find_package(ZLIB REQUIRED)
list(APPEND HDF5_LIBRARIES ZLIB::ZLIB)

Expand Down

0 comments on commit 23846c7

Please sign in to comment.