build(grantlee): honor DISABLE_TESTS env to disable BUILD_TESTING during CMake configure

This commit is contained in:
Copilot authored and Torsten Wierschin committed 2026-07-20 19:10:26 +02:00
1 parent ddc3b7e542
commit 658051a8ea
1 file changed
+2 -1
+2 -1
View File
@@ -86,7 +86,8 @@ mkdir -p grantlee/build
cd grantlee/build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="${INSTALL_PREFIX}" \
-DCMAKE_PREFIX_PATH="${QT_ROOT}:${INSTALL_PREFIX}" ..
-DCMAKE_PREFIX_PATH="${QT_ROOT}:${INSTALL_PREFIX}" \
${DISABLE_TESTS:+-DBUILD_TESTING=OFF} ..
cmake --build . -- -j$(nproc) || true
cmake --install . || true