From e3d82438d5ce37420ebd991f620c91ad52e62eca Mon Sep 17 00:00:00 2001 From: Derek Huang Date: Tue, 25 Feb 2025 01:31:37 -0500 Subject: [PATCH] docs/INSTALL-CMAKE.md: fix wording + use PRIVATE for CMake example --- docs/INSTALL-CMAKE.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/INSTALL-CMAKE.md b/docs/INSTALL-CMAKE.md index 6188e256eb..710400d6e4 100644 --- a/docs/INSTALL-CMAKE.md +++ b/docs/INSTALL-CMAKE.md @@ -214,7 +214,7 @@ To link a CMake target against libcurl one can use as usual: ```cmake -target_link_libraries(my_target PUBLIC CURL::libcurl) +target_link_libraries(my_target PRIVATE CURL::libcurl) ``` # CMake build options @@ -554,5 +554,5 @@ translates to: > cmake . -G "Visual Studio 17 2022" -A x64 -DBUILD_SHARED_LIBS=ON -DOPENSSL_ROOT_DIR=C:\OpenSSL -DCURL_USE_OPENSSL=ON -DENABLE_UNICODE=ON -DCURL_USE_LIBPSL=OFF > cmake --build . --config Debug -We must use `--config` here with `cmake --build` because the Visual Studio are -multi-config generators and therefore ignore the `CMAKE_BUILD_TYPE` variable. +We use `--config` with `cmake --build` because the Visual Studio CMake +generators are multi-config and therefore ignore `CMAKE_BUILD_TYPE`.