Adds convinient RTI build variable

This commit is contained in:
torsten committed 2026-09-15 08:56:31 +00:00
1 parent 44fdf2ac91
commit c29ffee9d4
1 file changed
+10 -1
+10 -1
View File
@@ -13,11 +13,20 @@ set -a
source .envrc source .envrc
set +a set +a
# Allow BUILD_RTI to be overridden via environment variable or argument
BUILD_RTI="${BUILD_RTI:-ON}"
if [ "$1" = "OFF" ]; then
BUILD_RTI=OFF
elif [ "$1" = "ON" ]; then
BUILD_RTI=ON
fi
# Run CMake configuration and build inside Docker # Run CMake configuration and build inside Docker
docker run --rm \ docker run --rm \
-e MIGRATE_PIPELINE_ROOT \ -e MIGRATE_PIPELINE_ROOT \
-e LANG \ -e LANG \
-e LC_ALL \ -e LC_ALL \
-e BUILD_RTI \
-v ${MIGRATE_PIPELINE_ROOT}:/workspace \ -v ${MIGRATE_PIPELINE_ROOT}:/workspace \
-v ${MIGRATE_PIPELINE_ROOT}/rti_license.dat:/workspace/rti_license.dat \ -v ${MIGRATE_PIPELINE_ROOT}/rti_license.dat:/workspace/rti_license.dat \
-w /workspace/qt-migration-legatus/qt6-after/qt6-migrated-legatus \ -w /workspace/qt-migration-legatus/qt6-after/qt6-migrated-legatus \
@@ -50,7 +59,7 @@ docker run --rm \
cd build4 cd build4
cmake .. \ cmake .. \
-DBUILD_RTI=ON \ -DBUILD_RTI=${BUILD_RTI} \
-DBUILD_ARCGIS=OFF \ -DBUILD_ARCGIS=OFF \
-DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD=17