Ensure CMake compile commands file gets generated

This commit is contained in:
Dan Paulat 2025-06-06 22:12:36 -05:00
parent 0dcf8eabab
commit 9ec1a62403
2 changed files with 3 additions and 1 deletions

View file

@ -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% ^

View file

@ -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