From 9ec1a624037baad58bb707020a3150f8b8f29b62 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Fri, 6 Jun 2025 22:12:36 -0500 Subject: [PATCH] Ensure CMake compile commands file gets generated --- tools/lib/run-cmake-configure.bat | 3 ++- tools/lib/run-cmake-configure.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/lib/run-cmake-configure.bat b/tools/lib/run-cmake-configure.bat index 785d5d8d..424bcc34 100644 --- a/tools/lib/run-cmake-configure.bat +++ b/tools/lib/run-cmake-configure.bat @@ -6,7 +6,8 @@ -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES="%script_dir%\..\..\external\cmake-conan\conan_provider.cmake" ^ -DCONAN_HOST_PROFILE=%conan_profile% ^ -DCONAN_BUILD_PROFILE=%conan_profile% ^ - -DSCWX_VIRTUAL_ENV=%venv_path% + -DSCWX_VIRTUAL_ENV=%venv_path% ^ + -DCMAKE_EXPORT_COMPILE_COMMANDS=on @if defined build_type ( set cmake_args=%cmake_args% ^ diff --git a/tools/lib/run-cmake-configure.sh b/tools/lib/run-cmake-configure.sh index 461d54d8..ffe9e7f8 100755 --- a/tools/lib/run-cmake-configure.sh +++ b/tools/lib/run-cmake-configure.sh @@ -10,6 +10,7 @@ cmake_args=( -DCONAN_HOST_PROFILE="${conan_profile}" -DCONAN_BUILD_PROFILE="${conan_profile}" -DSCWX_VIRTUAL_ENV="${venv_path}" + -DCMAKE_EXPORT_COMPILE_COMMANDS=on ) if [[ -n "${build_type}" ]]; then