C++ Engineering Weekly, October 26 - November 1
CMake gets this week's attention.
CMake 4.5 RC2 arrived on October 28. These are features of the upcoming 4.5 release, not all additions made specifically in RC2. Three deserve a test drive:
- Run tests whose dependencies changed. CTest gains
--out-of-date, using recorded build dependencies to select tests. Promising for shortening the edit -> build -> test loop. My caveat: incomplete dependency information deserves suspicion. Keep full-suite CI while evaluating selective runs. - External projects get a more sensible installation destination. Under policy CMP0225, ExternalProject's default configure command sets
CMAKE_INSTALL_PREFIXto its reservedINSTALL_DIR; an explicitly supplied prefix still wins. Audit superbuilds that relied on the previous default. "Where did that library install?" is a debugging genre we could retire. -
import stdgets broader build-system support. The 4.5 notes extend it to C++20-and-later code with module scanning enabled. That doesn't make every compiler, standard library and generator combination interchangeable. Test your actual Linux, Windows and macOS toolchains before promising portability.
These are release-candidate features. My recommendation: add an evaluation CI job, check installation paths and test selection, then consider adoption. The expected gains concern build workflow and reliability; there's no runtime speedup claim here.
One useful read published October 29
Microsoft's vcpkg roundup explains configurable binary-cache compression. Lower compression trades larger archives for less compression work; the setting preserves package ABIs and existing archive compatibility. Measure against your cache network. Importantly, the article summarizes earlier September/October releases - it isn't a new feature shipped this week.
Sources: Kitware, MS C++ Team Blog
原文:https://www.a8q9.cn/en/article/c-engineering-weekly-october-26-november-1-815abe.html