Skip to content

CMAKE_EXPORT_COMPILE_COMMANDS: Works for most Makefiles generators

Some tests were over-restricted to only run for the Unix Makefiles generator, when any Makefiles generator except Watcom WMake should work. Update those tests to run for other Makefiles generators too. Also don't restrict the Ninja case to non-WIN32 as a drive-by related change in the same condition for one test case.

The CMAKE_EXPORT_COMPILE_COMMANDS environment variable also was only being honored for Unix Makefiles rather than all Makefiles generators. Fix this to now support all Makefiles generators except the Watcom WMake generator.

Fixes: #23890

Merge request reports

Loading