From 36eff8fa4222b2225e349a44dde0402f0f4a277b Mon Sep 17 00:00:00 2001 From: Lesley Lai Date: Mon, 10 May 2021 09:30:12 -0600 Subject: [PATCH] Use CMake namespaced target in CMake Readme This provides better error messages when the target cannot be found --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 70b0792..fb9fb60 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ add_subdirectory(vk-bootstrap) Then use `target_link_libraries` to use the library in whichever target needs it. ```cmake -target_link_libraries(your_application_name vk-bootstrap) +target_link_libraries(your_application_name vk-bootstrap::vk-bootstrap) ``` ### 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 ) 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