summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorFeRD (Frank Dana) <ferdnyc@gmail.com>2022-06-06 11:38:27 -0400
committerFeRD (Frank Dana) <ferdnyc@gmail.com>2022-06-06 12:27:11 -0400
commite52b9e127053fa404d964ee2df1ab3915fc43565 (patch)
tree687110280f29dc4b7dabe76094743bd1cbbcd4c1 /Modules
parentd87ed4d88fb3dce4eca55d6cfc512f7769ac1bd8 (diff)
downloadcmake-e52b9e127053fa404d964ee2df1ab3915fc43565.tar.gz
PrintHelpers: Document argument order restriction
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakePrintHelpers.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/CMakePrintHelpers.cmake b/Modules/CMakePrintHelpers.cmake
index 1a623db791..6d6355cce1 100644
--- a/Modules/CMakePrintHelpers.cmake
+++ b/Modules/CMakePrintHelpers.cmake
@@ -19,7 +19,10 @@ e.g. for debugging.
This function prints the values of the properties of the given targets,
source files, directories, tests or cache entries. Exactly one of the
-scope keywords must be used. Example::
+scope keywords must be used. The scope keyword and its arguments must
+come before the ``PROPERTIES`` keyword, in the arguments list.
+
+Example::
cmake_print_properties(TARGETS foo bar PROPERTIES
LOCATION INTERFACE_INCLUDE_DIRECTORIES)