-
-
Notifications
You must be signed in to change notification settings - Fork 254
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
Conversation
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}) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
This should fix #2791 |
Fixes a problem when using multi-config builds with the CMake GUI
No description provided.