mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 21:18:59 +08:00
[docs] fix CMakeLists example for SQLite3 (#11763)
* docs: fix CMakeLists example for SQLite3 * docs: simplify CMake config * fix: remove extra parenthesis
This commit is contained in:
parent
6ac6267f51
commit
92db9a65e6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user