mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 07:24:34 +00:00
Use CMake namespaced target in CMake Readme
This provides better error messages when the target cannot be found
This commit is contained in:
parent
95b82a9537
commit
36eff8fa42
@ -109,7 +109,7 @@ add_subdirectory(vk-bootstrap)
|
|||||||
Then use `target_link_libraries` to use the library in whichever target needs it.
|
Then use `target_link_libraries` to use the library in whichever target needs it.
|
||||||
|
|
||||||
```cmake
|
```cmake
|
||||||
target_link_libraries(your_application_name vk-bootstrap)
|
target_link_libraries(your_application_name vk-bootstrap::vk-bootstrap)
|
||||||
```
|
```
|
||||||
|
|
||||||
### CMake Fetch Content
|
### CMake Fetch Content
|
||||||
@ -123,7 +123,7 @@ FetchContent_Declare(
|
|||||||
GIT_TAG BRANCH_OR_TAG #suggest using a tag so the library doesn't update whenever new commits are pushed to a branch
|
GIT_TAG BRANCH_OR_TAG #suggest using a tag so the library doesn't update whenever new commits are pushed to a branch
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(fetch_vk_bootstrap)
|
FetchContent_MakeAvailable(fetch_vk_bootstrap)
|
||||||
target_link_libraries(your_application_name vk-bootstrap)
|
target_link_libraries(your_application_name vk-bootstrap::vk-bootstrap)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Manually Building
|
### Manually Building
|
||||||
|
Loading…
Reference in New Issue
Block a user