aboutsummaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
authorMateusz Łoskot <mateusz@loskot.net>2021-02-14 10:21:21 +0100
committerMateusz Łoskot <mateusz@loskot.net>2021-02-14 10:21:21 +0100
commit5fc8ab2de9f9e44f593e477defdf9b474871a5d2 (patch)
tree9f4ce5953eabd4670ea5b82a0c0baf0bc2c683f8 /docs/source
parent32d442ddc69cbc159c75781f33c575ea5b11fc43 (diff)
downloadPROJ-5fc8ab2de9f9e44f593e477defdf9b474871a5d2.tar.gz
PROJ-5fc8ab2de9f9e44f593e477defdf9b474871a5d2.zip
CMake: Prefer keyword signature of target_link_libraries command
Closes #2515
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/development/cmake.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/source/development/cmake.rst b/docs/source/development/cmake.rst
index e965f46e..477b4f3b 100644
--- a/docs/source/development/cmake.rst
+++ b/docs/source/development/cmake.rst
@@ -12,7 +12,7 @@ the CMake configuration which comes with the library. Typical usage is:
find_package(PROJ)
- target_link_libraries(MyApp ${PROJ_LIBRARIES})
+ target_link_libraries(MyApp PRIVATE ${PROJ_LIBRARIES})
By adding the imported library target ``${PROJ_LIBRARIES}`` to the
target link libraries, CMake will also pass the include directories to
@@ -36,7 +36,7 @@ package to work with pre-7.0 versions of PROJ, you will need to use
.. code::
find_package(PROJ4)
- target_link_libraries(MyApp ${PROJ4_LIBRARIES})
+ target_link_libraries(MyApp PRIVATE ${PROJ4_LIBRARIES})
include_directories(${PROJ4_INCLUDE_DIRS})
This will also find version 7.0. This use of the PROJ4 name will be