Skip to content

Commit

Permalink
add cmake compile commands
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Jan 7, 2025
1 parent 63efd36 commit 564fa6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/pixi-build/src/bin/pixi-build-cmake/build_script.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ if not exist %SRC_DIR%\..\build\CMakeCache.txt (
-GNinja ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON ^
-DBUILD_SHARED_LIBS=ON ^
-B %SRC_DIR%\..\build ^
-S "{{ source_dir }}"
Expand All @@ -23,6 +24,7 @@ if [ ! -f "$SRC_DIR/../build/CMakeCache.txt" ]; then
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DBUILD_SHARED_LIBS=ON \
-B $SRC_DIR/../build \
-S "{{ source_dir }}"
Expand Down

0 comments on commit 564fa6e

Please sign in to comment.