diff options
| author | Phoebe <20694052+PhoebeHui@users.noreply.github.com> | 2020-08-06 01:36:25 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-05 10:36:25 -0700 |
| commit | f3221c0405b6f99c6eff113cb4ca8c81c3ad3a84 (patch) | |
| tree | a3f72ea4c7d994cf097077be5daa3b8be07c3b59 /docs | |
| parent | 6a83b5365e8fc48c41564d319f915cbff603c99e (diff) | |
| download | vcpkg-f3221c0405b6f99c6eff113cb4ca8c81c3ad3a84.tar.gz vcpkg-f3221c0405b6f99c6eff113cb4ca8c81c3ad3a84.zip | |
[sqlite3] Namespaced targets with unofficial:: (#12516)
* [sqlite3] Namespaced targets with unofficial::
* Fix failure ports
* Update the targets name
* Update related docs
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/examples/installing-and-using-packages.md | 8 | ||||
| -rw-r--r-- | docs/examples/overlay-triplets-linux-dynamic.md | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/docs/examples/installing-and-using-packages.md b/docs/examples/installing-and-using-packages.md index f98de78ab..011df93a4 100644 --- a/docs/examples/installing-and-using-packages.md +++ b/docs/examples/installing-and-using-packages.md @@ -47,8 +47,8 @@ Total elapsed time: 12.04 s The package sqlite3:x86-windows provides CMake targets: - find_package(sqlite3 CONFIG REQUIRED) - target_link_libraries(main PRIVATE sqlite3) + find_package(unofficial-sqlite3 CONFIG REQUIRED) + target_link_libraries(main PRIVATE unofficial::sqlite3::sqlite3)) ``` @@ -118,11 +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 CONFIG REQUIRED) +find_package(unofficial-sqlite3 CONFIG REQUIRED) add_executable(main main.cpp) -target_link_libraries(main PRIVATE sqlite3) +target_link_libraries(main PRIVATE unofficial::sqlite3::sqlite3) ``` ```cpp // main.cpp diff --git a/docs/examples/overlay-triplets-linux-dynamic.md b/docs/examples/overlay-triplets-linux-dynamic.md index 7d0540927..5d7901337 100644 --- a/docs/examples/overlay-triplets-linux-dynamic.md +++ b/docs/examples/overlay-triplets-linux-dynamic.md @@ -55,8 +55,8 @@ Total elapsed time: 44.82 s The package sqlite3:x64-linux-dynamic provides CMake targets:
- find_package(sqlite3 CONFIG REQUIRED)
- target_link_libraries(main PRIVATE sqlite3)
+ find_package(unofficial-sqlite3 CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE unofficial::sqlite3::sqlite3)
```
Overlay triplets enables your custom triplet files when using `vcpkg install`, `vcpkg update`, `vcpkg upgrade`, and `vcpkg remove`.
@@ -115,8 +115,8 @@ Total elapsed time: 44.82 s The package sqlite3:x64-linux provides CMake targets:
- find_package(sqlite3 CONFIG REQUIRED)
- target_link_libraries(main PRIVATE sqlite3)
+ find_package(unofficial-sqlite3 CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE unofficial::sqlite3::sqlite3)
```
Note that the default triplet is masked by your custom triplet:
|
