跳到主要内容

kmcmake v1 upgrade summary

· 阅读需 3 分钟
Kumo maintainer

This post summarizes the latest kmcmake upgrade focused on practical engineering throughput, template maintainability, and exported-package usability.

The core outcome is simple: we moved from "works for template users" to "works for template users and downstream package consumers with transparent metadata".

为什么用cmake

· 阅读需 15 分钟
Kumo maintainer

如果你是C++开发者,大概率埋没过“构建地狱”的深渊:对着Makefile的嵌套语法抓耳挠腮,改一行编译选项要翻遍百行脚本;切换到CMake后,又被target_link_libraries的PUBLIC/PRIVATE逻辑绕晕,写个简单库的配置文件比业务代码还长;偶尔想试试Bazel、Blade、Xmake,却发现每个工具都有专属“黑话体系”,光学习成本就够喝一壶——更别提生产环境里的终极折磨:为了集成一个第三方库,反复安装依赖、调试编译参数,甚至折腾半个月才勉强跑通,最后还得面对“换台机器就崩”的噩梦。难道构建C++项目,非要先渡劫成“构建工具专家”才能开工?