mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 03:37:58 +08:00
Move -DCMAKE_... to a new line to prevent the line-break after the dash.
This commit is contained in:
parent
94ec7c46a5
commit
381e4c94af
@ -89,7 +89,8 @@ To remove the integration for your user, you can use `.\vcpkg integrate remove`.
|
||||
<a name="cmake"></a>
|
||||
#### CMake (Toolchain File)
|
||||
|
||||
The best way to use installed libraries with cmake is via the toolchain file `scripts\buildsystems\vcpkg.cmake`. To use this file, you simply need to add it onto your CMake command line as `-DCMAKE_TOOLCHAIN_FILE=D:\src\vcpkg\scripts\buildsystems\vcpkg.cmake`.
|
||||
The best way to use installed libraries with cmake is via the toolchain file `scripts\buildsystems\vcpkg.cmake`. To use this file, you simply need to add it onto your CMake command line as:
|
||||
`-DCMAKE_TOOLCHAIN_FILE=D:\src\vcpkg\scripts\buildsystems\vcpkg.cmake`.
|
||||
|
||||
If you are using CMake through Open Folder with Visual Studio 2017 you can define `CMAKE_TOOLCHAIN_FILE` by adding a "variables" section to each of your `CMakeSettings.json` configurations:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user