This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake".
The branch, next has been updated via 32e061936368819a8dc60cac90e4997d60a0a9aa (commit) via 6e92f7b2de3d6a25e4e77e274de110a2974c74ca (commit) from a10f0819c3ddff6527b8ff2524a66079a245468e (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=32e061936368819a8dc60cac90e4997d60a0a9aa commit 32e061936368819a8dc60cac90e4997d60a0a9aa Merge: a10f081 6e92f7b Author: Brad King <brad.k...@kitware.com> AuthorDate: Fri Jan 15 15:05:07 2016 -0500 Commit: CMake Topic Stage <kwro...@kitware.com> CommitDate: Fri Jan 15 15:05:07 2016 -0500 Merge topic 'doc-export-compile-commands' into next 6e92f7b2 Help: Document the CMAKE_EXPORT_COMPILE_COMMANDS variable https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6e92f7b2de3d6a25e4e77e274de110a2974c74ca commit 6e92f7b2de3d6a25e4e77e274de110a2974c74ca Author: Sebastian Schuberth <sschube...@gmail.com> AuthorDate: Fri Jan 15 15:08:45 2016 +0100 Commit: Brad King <brad.k...@kitware.com> CommitDate: Fri Jan 15 15:04:33 2016 -0500 Help: Document the CMAKE_EXPORT_COMPILE_COMMANDS variable diff --git a/Help/manual/cmake-variables.7.rst b/Help/manual/cmake-variables.7.rst index 3f49572..15eaece 100644 --- a/Help/manual/cmake-variables.7.rst +++ b/Help/manual/cmake-variables.7.rst @@ -118,6 +118,7 @@ Variables that Change Behavior /variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName /variable/CMAKE_ERROR_DEPRECATED /variable/CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION + /variable/CMAKE_EXPORT_COMPILE_COMMANDS /variable/CMAKE_EXPORT_NO_PACKAGE_REGISTRY /variable/CMAKE_SYSROOT /variable/CMAKE_FIND_APPBUNDLE diff --git a/Help/variable/CMAKE_EXPORT_COMPILE_COMMANDS.rst b/Help/variable/CMAKE_EXPORT_COMPILE_COMMANDS.rst new file mode 100644 index 0000000..8776279 --- /dev/null +++ b/Help/variable/CMAKE_EXPORT_COMPILE_COMMANDS.rst @@ -0,0 +1,30 @@ +CMAKE_EXPORT_COMPILE_COMMANDS +----------------------------- + +Enable/Disable output of compile commands during generation. + +If enabled, generates a ``compile_commands.json`` file containing the exact +compiler calls for all translation units of the project in machine-readable +form. The format of the JSON file looks like: + +.. code-block:: javascript + + [ + { + "directory": "/home/user/development/project", + "command": "/usr/bin/c++ ... -c ../foo/foo.cc", + "file": "../foo/foo.cc" + }, + + ... + + { + "directory": "/home/user/development/project", + "command": "/usr/bin/c++ ... -c ../foo/bar.cc", + "file": "../foo/bar.cc" + } + ] + +.. note:: + This option is implemented only by :ref:`Makefile Generators` + and the :generator:`Ninja`. It is ignored on other generators. ----------------------------------------------------------------------- Summary of changes: Help/manual/cmake-variables.7.rst | 1 + Help/variable/CMAKE_EXPORT_COMPILE_COMMANDS.rst | 30 +++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 Help/variable/CMAKE_EXPORT_COMPILE_COMMANDS.rst hooks/post-receive -- CMake _______________________________________________ Cmake-commits mailing list Cmake-commits@cmake.org http://public.kitware.com/mailman/listinfo/cmake-commits