From eb16e7c7281e182297581fa8d565561869c81bca Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 14 Nov 2020 11:45:52 +0800 Subject: DEB: added cmake directive to create compilation database 'compile_commands.json' at build time. This can be used to provide linting, autocompletion, hovering info, go-to-definition and in general other LSP functionality in development environments. Signed-off-by: Michele Calgaro --- debian/_base/applications/knetload/debian/rules | 1 + 1 file changed, 1 insertion(+) (limited to 'debian/_base/applications/knetload') diff --git a/debian/_base/applications/knetload/debian/rules b/debian/_base/applications/knetload/debian/rules index 3c4dc0568..65318dd0d 100755 --- a/debian/_base/applications/knetload/debian/rules +++ b/debian/_base/applications/knetload/debian/rules @@ -13,6 +13,7 @@ DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ && echo xz || echo bzip2) DEB_CMAKE_EXTRA_FLAGS := \ + -DCMAKE_EXPORT_COMPILE_COMMANDS="ON" \ -DCMAKE_INSTALL_PREFIX="/opt/trinity" \ -DCONFIG_INSTALL_DIR="/etc/trinity" \ -DSYSCONF_INSTALL_DIR="/etc" \ -- cgit v1.2.1