### OpenGL settings
CMAKE_OPTIONS+=" -DOpenGL_GL_PREFERENCE:STRING=LEGACY"
-CMAKE_OPTIONS+=" -DCATALYST_BUILD_STUB_IMPLEMENTATION:BOOL=ON"
echo "INFO: setting CATALYST"
-CMAKE_OPTIONS+=" -DPARAVIEW_BUILD_PLUGIN_CatalystScriptGeneratorPlugin=ON"
-CMAKE_OPTIONS+=" -DPARAVIEW_AUTOLOAD_PLUGIN_CatalystScriptGeneratorPlugin=ON"
-CMAKE_OPTIONS+=" -DPARAVIEW_BUILD_CATALYST_ADAPTORS=ON"
-CMAKE_OPTIONS+=" -DUSE_CATALYST:BOOL=ON"
-CMAKE_OPTIONS+=" -DPARAVIEW_ENABLE_CATALYST=ON"
-CMAKE_OPTIONS+=" -Dcatalyst_DIR=${CATALYST_ROOT_DIR}/lib/cmake/catalyst-2.0"
+CMAKE_OPTIONS+=" -DCATALYST_BUILD_STUB_IMPLEMENTATION:BOOL=ON"
+
+if [ "${CATALYST_ROOT_DIR}" != "" ]; then
+ echo "INFO: setting CATALYST advanced options"
+ CMAKE_OPTIONS+=" -DPARAVIEW_BUILD_PLUGIN_CatalystScriptGeneratorPlugin=ON"
+ CMAKE_OPTIONS+=" -DPARAVIEW_AUTOLOAD_PLUGIN_CatalystScriptGeneratorPlugin=ON"
+ CMAKE_OPTIONS+=" -DPARAVIEW_BUILD_CATALYST_ADAPTORS=ON"
+ CMAKE_OPTIONS+=" -DUSE_CATALYST:BOOL=ON"
+ CMAKE_OPTIONS+=" -DPARAVIEW_ENABLE_CATALYST=ON"
+ CMAKE_OPTIONS+=" -Dcatalyst_DIR=${CATALYST_ROOT_DIR}/lib/cmake/catalyst-2.0"
+else
+ echo "INFO: CATALYST OPTIONS NOT SET!"
+fi
### spns #20550 - Headless mode
if [ "$PARAVIEW_HEADLESS_MODE" == "1" ]; then