From c7faedd0fc9f52ca176650d73840b3ce7eca7531 Mon Sep 17 00:00:00 2001 From: wuyangfan <1102042793@qq.com> Date: Tue, 26 May 2026 23:54:43 +0800 Subject: [PATCH] docs: clarify CMake build directory uses parent path Explain that `cmake ..` from `build/` refers to the source root with CMakeLists.txt. Fixes confusion reported in #780. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 285644ed7..d72d09647 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ cd build cmake [-G generator] [-DYAML_BUILD_SHARED_LIBS=on|OFF] .. ``` +The `..` at the end points CMake at the source tree root (where `CMakeLists.txt` lives), since you are configuring from inside `build/`. + * The `generator` option is the build system you'd like to use. Run `cmake` without arguments to see a full list of available generators. * On Windows, you might use "Visual Studio 12 2013" (VS 2013 32-bits), or "Visual Studio 14 2015 Win64" (VS 2015 64-bits). * On OS X, you might use "Xcode".