[cmake]: export json compile cmd for VSC

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I25e1f660a2fc9629399ac5b298141b54a952cd2d
This commit is contained in:
Herman Chen 2023-03-23 17:08:23 +08:00
parent 64cf1d5a16
commit 95f472e373

View file

@ -62,6 +62,10 @@ set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "CMakeTargets")
# enable test in this project
# ----------------------------------------------------------------------------
option(BUILD_TEST "enable test binary building)" ON)
# ----------------------------------------------------------------------------
# export json compile commands
# ----------------------------------------------------------------------------
set(CMAKE_EXPORT_COMPILE_COMMANDS true)
# ----------------------------------------------------------------------------
# System architecture detection