summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_EXPORT_COMPILE_COMMANDS.rst
diff options
context:
space:
mode:
authorShannon Booth <shannon.ml.booth@gmail.com>2020-12-23 18:16:34 (GMT)
committerShannon Booth <shannon.ml.booth@gmail.com>2021-01-05 22:51:39 (GMT)
commita742b5d137d0855430a044dc4237de5aabfb08b4 (patch)
treec99ce00905019f35d142bab20816c87dd8c0cb2f /Help/variable/CMAKE_EXPORT_COMPILE_COMMANDS.rst
parentce8bb12f72766e45ad96d98d9e1d259815dc126a (diff)
downloadCMake-a742b5d137d0855430a044dc4237de5aabfb08b4.zip
CMake-a742b5d137d0855430a044dc4237de5aabfb08b4.tar.gz
CMake-a742b5d137d0855430a044dc4237de5aabfb08b4.tar.bz2
CMAKE_EXPORT_COMPILE_COMMANDS: allow configuration per target
The new target property `EXPORT_COMPILE_COMMANDS` associated with the existing global variable can be used to optionally configure targets for their compile commands to be exported. Fixes: #19462
Diffstat (limited to 'Help/variable/CMAKE_EXPORT_COMPILE_COMMANDS.rst')
-rw-r--r--Help/variable/CMAKE_EXPORT_COMPILE_COMMANDS.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Help/variable/CMAKE_EXPORT_COMPILE_COMMANDS.rst b/Help/variable/CMAKE_EXPORT_COMPILE_COMMANDS.rst
index 724f309..53a19dc 100644
--- a/Help/variable/CMAKE_EXPORT_COMPILE_COMMANDS.rst
+++ b/Help/variable/CMAKE_EXPORT_COMPILE_COMMANDS.rst
@@ -28,7 +28,8 @@ form. The format of the JSON file looks like:
]
This is initialized by the :envvar:`CMAKE_EXPORT_COMPILE_COMMANDS` environment
-variable.
+variable, and initializes the :prop_tgt:`EXPORT_COMPILE_COMMANDS` target
+property for all targets.
.. note::
This option is implemented only by :ref:`Makefile Generators`