Skip to content

Commit

Permalink
dedupe hdf5_external specification
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Oct 26, 2020
1 parent 3fc0e25 commit f33c7a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ endif()

project(h5fortran
LANGUAGES C Fortran
VERSION 3.3.6
VERSION 3.3.7
DESCRIPTION "thin, light object-oriented HDF5 Fortran interface"
HOMEPAGE_URL https://github.com/geospace-code/h5fortran)

Expand Down
2 changes: 2 additions & 0 deletions cmake/build_hdf5.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# note: the use of "lib" vs. CMAKE_STATIC_LIBRARY_PREFIX is deliberate based on the particulars of these libraries
# across Intel Fortran on Windows vs. Gfortran on Windows vs. Linux.

set(hdf5_external true CACHE BOOL "autobuild HDF5")

include(ExternalProject)

set(HDF5_LIBRARIES)
Expand Down
2 changes: 0 additions & 2 deletions cmake/hdf5.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ if(NOT hdf5_external)
endif()

if(NOT HDF5_FOUND)
set(hdf5_external true CACHE BOOL "autobuild HDF5")
include(${CMAKE_CURRENT_LIST_DIR}/build_hdf5.cmake)
return()
endif()
Expand Down Expand Up @@ -147,6 +146,5 @@ else()
unset(HDF5_DEFINITIONS)
unset(ZLIB::ZLIB)
unset(SZIP::SZIP)
set(hdf5_external true CACHE BOOL "autobuild HDF5")
include(${CMAKE_CURRENT_LIST_DIR}/build_hdf5.cmake)
endif()
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project('h5fortran', 'fortran',
meson_version : '>=0.52.0',
version : '3.3.6',
version : '3.3.7',
default_options : ['default_library=static', 'buildtype=release', 'warning_level=3'])

subdir('meson')
Expand Down

0 comments on commit f33c7a1

Please sign in to comment.