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/not_a_novel_account cmake dev Jun 22 '26 edited Jun 22 '26
Only visual studio uses that terminology. For everyone else it means "a single codebase", consisting of its source, build, and install trees. Within these might manifest many different executables, shared objects, archives, and other forms of build artifacts and logical targets.
The examples in the blog post are basic demonstrations of this, ie this is a CMake project which produces 4 libraries as artifacts: https://github.com/nickelpro/bmi-compatibility-tests/blob/main/cmake/CMakeLists.txt
Literally any CMake project with two different
target_compile_features()calls; or more than one target and anytarget_compile_options()calls whatsoever. Github says there are 1.5M occurrences oftarget_compile_options().CMake itself has several of these, with test targets which compile under BMI-incompatible flags which all link to CMakeLib. If we converted CMakeLib to use modules instead of headers, we would need BMI compatibility to build those various downstream targets.