cmake: set ENABLE_DEBUG=ON
by default for Debug
builds
#13717
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When
CMAKE_BUILD_TYPE
is set toDebug
, enable curl debug featuresby default. We do this to more closely match how autotools builds
work, where
--enable-debug
enables both compiler debug feature andcurl ones.
You can override this by explicitly setting
ENABLE_DEBUG=OFF
anddisable curl debug feature while leaving compiler debug enabled.
Ref: #13592 (comment)
Closes #13717
/cc @jay