Re: [CMake] Get compiler command line (or json compilation database) for a target

2018-07-31 Thread Roman Popov
In general I don't understand why CMake provides a separate integration for each tool (_CLANG_TIDY _COMPILER_LAUNCHER _CPPCHECK _CPPLINT _INCLUDE_WHAT_YOU_USE), But a generic solution is not provided (or not documented clearly? ) вт, 31 июл. 2018 г. в 9:47, Roman Popov : > Afte

Re: [CMake] Get compiler command line (or json compilation database) for a target

2018-07-31 Thread Roman Popov
And I want to run it as a separate build target. https://stackoverflow.com/questions/51618307/how-to-run-clang-based-tool-as-a-separate-cmake-target пн, 30 июл. 2018 г. в 0:12, Roman Popov : > Hi all, > > How can I get a full compiler command line for a given target in > CMakeLists

[CMake] Get compiler command line (or json compilation database) for a target

2018-07-30 Thread Roman Popov
Hi all, How can I get a full compiler command line for a given target in CMakeLists project? I want to run Clang-based tool on some targets (using CTest), and it requires same options as used during compilation. I know there is CMAKE_EXPORT_COMPILE_COMMANDS but it is not taget-specific. There is