2026-07-29 13:42
Today’s cursed CMake:
if bringing external dependencies directly into the build, such as with `FetchContent` or a direct call to `add_subdirectory()`, and one of those dependencies has such a call to `option(BUILD_SHARED_LIBS …)`, the top level project must also call `option(BUILD_SHARED_LIBS …)` before bringing in its dependencies. Failure to do so can lead to different behavior between the first and subsequent CMake runs.
That’s some nasty linker error to debug
评论
?
参与讨论