mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
The new target property `EXPORT_COMPILE_COMMANDS` associated with the existing global variable can be used to optionally configure targets for their compile commands to be exported. Fixes: #19462
8 lines
223 B
CMake
8 lines
223 B
CMake
enable_language(C)
|
|
|
|
add_library(Unset STATIC empty.c)
|
|
add_library(ToBeSet STATIC expected_file.c)
|
|
|
|
# Only one target with EXPORT_COMPILE_COMMANDS property.
|
|
set_property(TARGET ToBeSet PROPERTY EXPORT_COMPILE_COMMANDS TRUE)
|