From a1e80bf8425a145fbf4234ef581534d638fd9fb5 Mon Sep 17 00:00:00 2001 From: kreuzerkrieg Date: Fri, 31 Dec 2021 12:00:52 +0200 Subject: [PATCH] Fix CLion documentation --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f8bf3ad391ce98..9d29654758a800 100644 --- a/README.md +++ b/README.md @@ -249,7 +249,10 @@ Finally, in `CMake options`, add the following line: -DCMAKE_TOOLCHAIN_FILE=[vcpkg root]/scripts/buildsystems/vcpkg.cmake ``` -Unfortunately, you'll have to add this to each profile. +Alternatively you can add "PreLoad.cmake" file to the root of your project which contains the following line +```cmake +set(CMAKE_TOOLCHAIN_FILE /some/path/vcpkg/scripts/buildsystems/vcpkg.cmake CACHE INTERNAL "" FORCE) +``` ### Vcpkg as a Submodule