Merge in SNORT/snort3 from ~MSTEPANE/snort3:export_compile_commands to master
Squashed commit of the following:
commit
247085b9aad6834ab92cdc504ab64edd764deb3f
Author: mstepane <mstepane@cisco.com>
Date: Thu Jul 31 09:00:48 2025 -0400
build: enable exporting compile commands
*.trs
*~
._Xcode*
+.cache/
.vscode/
Cbuild/
Xcode*/
+compile_commands.json
doc/basic.txt
doc/builtin.txt
doc/codec.txt
set (CMAKE_C_STANDARD_REQUIRED ON)
set (CMAKE_C_EXTENSIONS ON)
+# dump compile_commands.json to make it easier to use clangd with IDEs
+set (CMAKE_EXPORT_COMPILE_COMMANDS ON)
+
set (CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
# Pull in definitions of various install directories
include (GNUInstallDirs)