C++ docs: fix the dir that should be passed to CMAKE_PREFIX_PATH

This commit is contained in:
Olivier Goffart 2023-03-31 11:25:42 +02:00 committed by GitHub
parent 714a91e928
commit 45c19d6154
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -21,8 +21,9 @@ You can download one of our pre-built binaries for Linux or Windows on x86-64 ar
or `slint-cpp-XXX-win64.exe` for a Windows installer. ("XXX" refers to the version of the latest release)
4. Unpack the downloaded archive or run the installer.
After extracting the artifact or running the installer, you need to place the
`lib` sub-directory into your `CMAKE_PREFIX_PATH`. `find_package(Slint)` will
After extracting the artifact or running the installer, you need to place the installation
directory into your `CMAKE_PREFIX_PATH` by using the `-DCMAKE_PREFIX_PATH=/path/to/installed/slint`
argument in your cmake invocation. `find_package(Slint)` will
then be able to find Slint from within a `CMakeLists.txt` file.
At runtime you might also need to add the `lib` sub-directory to the `PATH`