Skip to content

build: avoid using a fixed version in HDF5_Examples.cmake.in#6328

Merged
lrknox merged 2 commits intodevelopfrom
hyoklee-patch-1
Mar 31, 2026
Merged

build: avoid using a fixed version in HDF5_Examples.cmake.in#6328
lrknox merged 2 commits intodevelopfrom
hyoklee-patch-1

Conversation

@hyoklee
Copy link
Copy Markdown
Member

@hyoklee hyoklee commented Mar 28, 2026

close #6260

@@ -83,7 +83,7 @@ set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSITE:STRING=${CTEST_SITE} -DBUILDN

#TAR_SOURCE - name of tarfile
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commented block has two problems:

  1. Stale hard-coded version (2.0.1)
  2. The if(NOT DEFINED TAR_SOURCE) guard is meaningless — TAR_SOURCE is never defined or used anywhere in the codebase. The guard and the variable being set (CTEST_USE_TAR_SOURCE) are different names. The guard would always evaluate true and add nothing.

Correct fix

Drop the bogus guard entirely and match the pattern used in HDF5config.cmake:

#TAR_SOURCE - name of tarfile
#set(CTEST_USE_TAR_SOURCE "HDF5Examples-@HDF5_PACKAGE_VERSION@-Source")

This is simpler, consistent with the rest of the codebase, and still conveys what the user needs to do (uncomment and set the variable).

lrknox
lrknox previously approved these changes Mar 30, 2026
glennsong09
glennsong09 previously approved these changes Mar 31, 2026
@hyoklee hyoklee dismissed stale reviews from glennsong09 and lrknox via cfc27ee March 31, 2026 16:07
@lrknox lrknox merged commit 9ba9b71 into develop Mar 31, 2026
244 of 245 checks passed
@github-project-automation github-project-automation bot moved this from To be triaged to Done in HDF5 - TRIAGE & TRACK Mar 31, 2026
@hyoklee hyoklee deleted the hyoklee-patch-1 branch March 31, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Change Version in config/examples/HDF5_Examples.cmake.in

4 participants