Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct usage of CMAKE_BUILD_TYPE #2863

Merged
merged 2 commits into from
May 1, 2023

Conversation

byrnHDF
Copy link
Contributor

@byrnHDF byrnHDF commented Apr 30, 2023

No description provided.

@byrnHDF byrnHDF added Merge - To 1.12 Priority - 0. Blocker ⛔ This MUST be merged for the release to happen Component - Build CMake, Autotools Type - Bug / Bugfix Please report security issues to help@hdfgroup.org instead of creating an issue on GitHub labels Apr 30, 2023
@byrnHDF byrnHDF self-assigned this Apr 30, 2023
set (HDF_BUILD_TYPE ${CMAKE_CFG_INTDIR})
if (CMAKE_BUILD_TYPE)
set (HDF_CFG_NAME ${CMAKE_BUILD_TYPE})
set (HDF_BUILD_TYPE ${CMAKE_BUILD_TYPE})
Copy link
Member

@hyoklee hyoklee May 1, 2023

Choose a reason for hiding this comment

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

Is the difference between HDF_CFG_NAME and HDF_BUILD_TYPE documented somewhere? Can we consolidate them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, they should be documented, but aren't yet. I don't believe they can be combined, but will check.

Copy link
Member

Choose a reason for hiding this comment

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

One of the things I was doing in the patch I was putting together included a comment block where I documented things like this. I think it's something that needs to be done, but I don't think that should hold this PR.

@derobins derobins merged commit a61eff8 into HDFGroup:develop May 1, 2023
@byrnHDF
Copy link
Contributor Author

byrnHDF commented May 2, 2023

This should fix #2791

@byrnHDF byrnHDF deleted the develop-cmake-cache branch May 3, 2023 17:21
brtnfld pushed a commit to brtnfld/hdf5 that referenced this pull request May 17, 2023
Fixes a problem when using multi-config builds with the CMake GUI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Build CMake, Autotools Priority - 0. Blocker ⛔ This MUST be merged for the release to happen Type - Bug / Bugfix Please report security issues to help@hdfgroup.org instead of creating an issue on GitHub
Projects
Status: Needs Merged
Development

Successfully merging this pull request may close these issues.

4 participants