diff --git a/scripts/cmake/DependenciesExternalProject.cmake b/scripts/cmake/DependenciesExternalProject.cmake index 03673bf9e67..df4942d2676 100644 --- a/scripts/cmake/DependenciesExternalProject.cmake +++ b/scripts/cmake/DependenciesExternalProject.cmake @@ -132,14 +132,6 @@ if(OGS_USE_PETSC) if(NOT "--download-fc" IN_LIST OGS_PETSC_CONFIG_OPTIONS) list(APPEND _configure_opts --with-fc=0) endif() - if(NOT "${HOSTNAME}" MATCHES "frontend.*") - if(DEFINED ENV{CC}) - list(APPEND _configure_opts --with-cc=$ENV{CC}) - endif() - if(DEFINED ENV{CXX}) - list(APPEND _configure_opts --with-cxx=$ENV{CXX}) - endif() - endif() unset(ENV{PETSC_DIR}) BuildExternalProject(