mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
[cmake] export compile commands (#6451)
This commit adds the option CMAKE_EXPORT_COMPILE_COMMANDS=ON to export compile commands which is helpful for editors/IDEs.
This commit is contained in:
+1
-1
@@ -181,7 +181,7 @@ build()
|
||||
mkdir -p "${builddir}"
|
||||
cd "${builddir}"
|
||||
|
||||
cmake -GNinja -DOT_COMPILE_WARNING_AS_ERROR=ON "$@" "${OT_SRCDIR}"
|
||||
cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DOT_COMPILE_WARNING_AS_ERROR=ON "$@" "${OT_SRCDIR}"
|
||||
|
||||
if [[ -n ${OT_CMAKE_NINJA_TARGET[*]} ]]; then
|
||||
ninja "${OT_CMAKE_NINJA_TARGET[@]}"
|
||||
|
||||
Reference in New Issue
Block a user