Skip to content

Commit 480e74e

Browse files
committed
build: enable compile_commands.json generation
Add CMAKE_EXPORT_COMPILE_COMMANDS ON to generate compile_commands.json during CMake configuration. This enables better IDE support and allows tools like clangsql to automatically pick up include paths and flags.
1 parent 0113ded commit 480e74e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ project(qscripts)
33

44
set(CMAKE_CXX_STANDARD 20)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)
6+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
67

78
# Include IDA SDK bootstrap
89
include($ENV{IDASDK}/ida-cmake/bootstrap.cmake)

0 commit comments

Comments
 (0)