On Monday 02 December 2013, Martin Zenzes wrote:
> Hi,
> 
> is there a reason why the cmake-option "CMAKE_EXPORT_COMPILE_COMMANDS"
> is not enabled by default? It was exposed as an option in 2011 [1], a
> few days after adding it initially. It can be enabled manually by adding
> "set(CMAKE_EXPORT_COMPILE_COMMANDS ON)" into the CMakeLists.txt or
> giving the option on the commandline as in "mkdir -p build && cd build
> && cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=on"
> 
> The option generates a file "compile_commands.json", containing the
> exact calls for all translation units of the project in machine-readable
> form. Benefits:

what is actually the purpose of this feature ?
It sounds to me a bit more like it should be an additional "extra" generator, 
i.e. generate makefiles/ninja files and additionally this json file.

Alex
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to