diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2021-02-14 11:33:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-14 11:33:47 +0100 |
| commit | cd10468ece8b66199410f274a625a5b05bf36592 (patch) | |
| tree | 9f4ce5953eabd4670ea5b82a0c0baf0bc2c683f8 /docs/source/development | |
| parent | 32d442ddc69cbc159c75781f33c575ea5b11fc43 (diff) | |
| parent | 5fc8ab2de9f9e44f593e477defdf9b474871a5d2 (diff) | |
| download | PROJ-cd10468ece8b66199410f274a625a5b05bf36592.tar.gz PROJ-cd10468ece8b66199410f274a625a5b05bf36592.zip | |
Merge pull request #2533 from mloskot/ml/cmake-keyword-target-commands
CMake: Prefer keyword signature of target_link_libraries command
Diffstat (limited to 'docs/source/development')
| -rw-r--r-- | docs/source/development/cmake.rst | 4 |
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 |
