Skip to content

Commit 23846c7

Browse files
committed
reduce repeat print
1 parent 731ba34 commit 23846c7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmake/build_hdf5.cmake

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if(IS_DIRECTORY ${HDF5_ROOT})
88
set(_cmd1 "")
99
set(_cmd2 "")
1010
else()
11+
message(STATUS "installing HDF5 library in ${HDF5_ROOT}")
1112
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)
1213
set(_cmd1 make -j)
1314
set(_cmd2 make -j install)
@@ -30,14 +31,10 @@ BUILD_BYPRODUCTS "${HDF5_LIBRARIES}"
3031
INSTALL_COMMAND "${_cmd2}"
3132
)
3233

33-
message(STATUS "installing HDF5 library in ${HDF5_ROOT}")
34-
3534
file(MAKE_DIRECTORY ${HDF5_ROOT}/include) # avoid race condition
3635

3736
add_dependencies(h5fortran HDF5_proj) # ensure HDF5 builds first
3837

39-
40-
4138
find_package(ZLIB REQUIRED)
4239
list(APPEND HDF5_LIBRARIES ZLIB::ZLIB)
4340

0 commit comments

Comments
 (0)