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

cmake: set ENABLE_DEBUG=ON by default for Debug builds #13717

Closed
wants to merge 1 commit into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented May 20, 2024

When CMAKE_BUILD_TYPE is set to Debug, enable curl debug features
by default. We do this to more closely match how autotools builds
work, where --enable-debug enables both compiler debug feature and
curl ones.

You can override this by explicitly setting ENABLE_DEBUG=OFF and
disable curl debug feature while leaving compiler debug enabled.

Ref: #13592 (comment)
Closes #13717


/cc @jay

When `CMAKE_BUILD_TYPE` is set to `Debug`, enable curl debug features
by default. We do this to more closely match how autotools builds
work, where `--enable-debug` enables both compiler debug feature and
curl ones.

You can override this by explicitly setting `ENABLE_DEBUG=OFF` and
disable curl debug feature while leaving compiler debug enabled.

Ref: curl#13592 (comment)
Closes #xxxxx
@vszakats
Copy link
Member Author

Hm, looking at it, and how this may change existing configs ...this seems to make it more complex to figure out which configuration ends up enabling what.

@vszakats vszakats marked this pull request as draft May 20, 2024 09:06
@jay
Copy link
Member

jay commented May 21, 2024

I thought about it some more and I think we should not do it, see my reply in #13592 (comment)

@vszakats
Copy link
Member Author

Thanks @jay, agreed!

Closing without merge.

@vszakats vszakats closed this May 21, 2024
@vszakats vszakats deleted the cmake-debug-defaults branch May 21, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants