| Message ID | mailman.67271.1749193781.1866309.openwrt-devel@lists.openwrt.org |
|---|---|
| State | New |
| Headers | show |
| Series | Rework CMake support | expand |
diff --git a/CMakeLists.txt b/CMakeLists.txt index 60ba81a..627690f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ INCLUDE(CheckFunctionExists) PROJECT(ubox C) +# Create compile_commands.json file +SET(CMAKE_EXPORT_COMPILE_COMMANDS ON) + ADD_DEFINITIONS(-Wall -Werror) IF(CMAKE_C_COMPILER_VERSION VERSION_GREATER 6) ADD_DEFINITIONS(-Wextra -Werror=implicit-function-declaration)