Skip to content

package(cmake): fix incorrect flag handling caused by substring matching#6236

Merged
waruqi merged 1 commit intoxmake-io:devfrom
Doekin:dev
Mar 23, 2025
Merged

package(cmake): fix incorrect flag handling caused by substring matching#6236
waruqi merged 1 commit intoxmake-io:devfrom
Doekin:dev

Conversation

@Doekin
Copy link
Contributor

@Doekin Doekin commented Mar 22, 2025

Resolved an issue where flags were mistakenly considered added due to substring matching (e.g., CMAKE_CXX_FLAGS being a part of CMAKE_CXX_FLAGS_RELWITHDEBINFO). This prevented certain flags from being properly included in the cmake command line. Improved the logic to ensure accurate flag detection and inclusion.

closes #6234

Resolved an issue where flags were mistakenly considered added due to substring matching (e.g., `CMAKE_CXX_FLAGS` being a part of `CMAKE_CXX_FLAGS_RELWITHDEBINFO`). This prevented certain flags from being properly included in the cmake command line. Improved the logic to ensure accurate flag detection and inclusion.
@waruqi waruqi merged commit 24ca1ce into xmake-io:dev Mar 23, 2025
22 checks passed
@waruqi waruqi added this to the v2.9.9 milestone Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Providing custom CMAKE_CXX_FLAGS_RELWITHDEBINFO prevents CMAKE_CXX_FLAGS from being inserted into the command line

2 participants