Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Only switch dir for building with preset
If config:build_directory_path() is relative then it will be treated as relative to nvim's cwd, not the cwd as given in the config, so cmake --build will fail if config.cwd is a subdirectory of nvim's cwd. On the other hand, when using presets CMake's cwd *must* be the directory where the preset files are. Fix this by only using config.cwd when building with presets.
- Loading branch information