r/cpp • u/not_a_novel_account cmake dev • Jun 01 '26
BMI Compatibility: Testing Build System C++ Modules Support
https://blog.vito.nyc/posts/bmi-compatibility/
68
Upvotes
r/cpp • u/not_a_novel_account cmake dev • Jun 01 '26
View all comments
Show parent comment
1
u/mwasplund soup Jun 11 '26 edited Jun 11 '26
The import wrapper is for integration from external prebuild libraries only for the use case where build steps are required (building the BMI for the public interface). BMI compatibility feels like it should be a global setting for a target artifact and all of its dependencies. I don't see a reason to overcomplicate a build system by allowing multiple concurrent and overlapping flavors that need to be reasoned over at the same time.
What benefit is there to running
build rootwhich in turn hasconsumer1configured to use C++23 andconsumer2which is configured for C++26 vs buildingconsumer1andconsumer2independently?