The CMAKE_<LANG>_FLAGS where not propagated to the parent scope.
The configuration specific variables were correctly scoped if a
configuration is defined, which is our default, but invalid if unset.
Details
Details
- Reviewers
deadalnix - Group Reviewers
Restricted Project - Commits
- rSTAGING3a12c8538e5b: [CMAKE] Fix scope issue in the remove_<lang>_compiler_flags() functions
rABC3a12c8538e5b: [CMAKE] Fix scope issue in the remove_<lang>_compiler_flags() functions
ninja check
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- cmake_fix_remove_flag_scope
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 8336 Build 14691: Default Diff Build & Tests Build 14690: arc lint + arc unit
Event Timeline
Comment Actions
Considering every single assignation is done to the parent_scope, you know this should have been a macro and not a function.
Comment Actions
There is one (hidden) assignation, the BUILD_TYPE_FLAGS variable from string(TOUPPER "CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE}" BUILD_TYPE_FLAGS)