diff options
| author | James Liu <disposedtrolley@users.noreply.github.com> | 2020-06-06 03:58:29 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-05 10:58:29 -0700 |
| commit | 92db9a65e66cdaad4948c2b5405e9566dc12d783 (patch) | |
| tree | ccb1eea77f6e15c8548f1384ebe8228651c52619 /docs/examples | |
| parent | 6ac6267f512dcec29171f4cbe62a040a974fde04 (diff) | |
| download | vcpkg-92db9a65e66cdaad4948c2b5405e9566dc12d783.tar.gz vcpkg-92db9a65e66cdaad4948c2b5405e9566dc12d783.zip | |
[docs] fix CMakeLists example for SQLite3 (#11763)
* docs: fix CMakeLists example for SQLite3
* docs: simplify CMake config
* fix: remove extra parenthesis
Diffstat (limited to 'docs/examples')
| -rw-r--r-- | docs/examples/installing-and-using-packages.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/examples/installing-and-using-packages.md b/docs/examples/installing-and-using-packages.md index 73f9d29a9..82371149b 100644 --- a/docs/examples/installing-and-using-packages.md +++ b/docs/examples/installing-and-using-packages.md @@ -118,10 +118,11 @@ Now let's make a simple CMake project with a main file. cmake_minimum_required(VERSION 3.0) project(test) -find_package(Sqlite3 REQUIRED) +find_package(sqlite3 CONFIG REQUIRED) add_executable(main main.cpp) -target_link_libraries(main sqlite3) + +target_link_libraries(main PRIVATE sqlite3) ``` ```cpp // main.cpp |
