Initialize CMAKE_EXPORT_COMPILE_COMMANDS from envvar of the same name

Fixes: #18386
This commit is contained in:
Daan De Meyer
2019-10-12 18:49:04 +02:00
committed by Brad King
parent 493c4e781a
commit 8065a686dd
11 changed files with 58 additions and 4 deletions

View File

@@ -25,6 +25,9 @@ form. The format of the JSON file looks like:
}
]
This is initialized by the :envvar:`CMAKE_EXPORT_COMPILE_COMMANDS` environment
variable.
.. note::
This option is implemented only by :ref:`Makefile Generators`
and the :generator:`Ninja`. It is ignored on other generators.