diff --git a/jenkins-scripts/docker/gz_rendering-compilation.bash b/jenkins-scripts/docker/gz_rendering-compilation.bash index caf362f03..60ea1c04a 100644 --- a/jenkins-scripts/docker/gz_rendering-compilation.bash +++ b/jenkins-scripts/docker/gz_rendering-compilation.bash @@ -35,6 +35,10 @@ fi export GPU_SUPPORT_NEEDED=true export GZDEV_PROJECT_NAME="gz-rendering${GZ_RENDERING_MAJOR_VERSION}" -export BUILDING_EXTRA_CMAKE_PARAMS+=" -DSKIP_optix=true" +# set SKIP_optix=true for Harmonic and earlier +# not needed for ionic since https://github.com/gazebosim/gz-rendering/pull/1032 +if [[ ${GZ_RENDERING_MAJOR_VERSION} -le 8 ]]; then + export BUILDING_EXTRA_CMAKE_PARAMS+=" -DSKIP_optix=true" +fi . ${SCRIPT_DIR}/lib/generic-building-base.bash