Skip to content

Commit

Permalink
Fix macros extraction and hdf5 bool cmake setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Oct 20, 2023
1 parent 213d5e5 commit 464321f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/build/buildlib.spio
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def extract_from_macros(macro_dump, varname):
###############################################################################
look_for = f"{varname} :="
for line in macro_dump.splitlines():
if look_for in line:
if line.startswith(look_for):
return line.split(":=")[-1].strip()

return ""
Expand Down Expand Up @@ -131,7 +131,7 @@ def buildlib(bldroot, installpath, case):
# os.environ["HDF5"] = os.path.dirname(os.path.dirname(which_h5dump))

if "WITH_HDF5_SCORPIO" in os.environ:
cmake_opts += "-DWITH_HDF5=On "
cmake_opts += "-DWITH_HDF5:BOOL=ON "

# Same deal with libz and szip
if "ZLIB_ROOT" in os.environ:
Expand Down

0 comments on commit 464321f

Please sign in to comment.