diff --git a/cluster_configs/ifa-cluster.cmake b/cluster_configs/ifa-cluster.cmake
index 96f5026d99be5b4a3166bb79ec69960dae19cb19..5b6525ffeed3f38acce8c2df832295248f4196f1 100644
--- a/cluster_configs/ifa-cluster.cmake
+++ b/cluster_configs/ifa-cluster.cmake
@@ -18,7 +18,7 @@ if ( COMPILER STREQUAL "intel")
         set(CMAKE_CXX_COMPILER     mpiicpc CACHE STRING "CXX compiler"     FORCE) # C++ compiler for parallel build
         set(CMAKE_Fortran_COMPILER mpiifort CACHE STRING "Fortran compiler" FORCE) # Fortran compiler for parallel build
     endif()
-    set(comp_flags "-restrict -alias-const -parallel -funroll-loops -no-ansi-alias -mavx -fma" CACHE STRING FORCE)
+    set(comp_flags -O3-restrict -alias-const -parallel -funroll-loops -no-ansi-alias -mavx -fma CACHE STRING FORCE)
 endif()
 
 if ( COMPILER STREQUAL "intel_oneapi")
@@ -35,7 +35,7 @@ if ( COMPILER STREQUAL "gnu")
         set(CMAKE_CXX_COMPILER     mpicxx CACHE STRING "CXX compiler"     FORCE) # C++ compiler for parallel build
         set(CMAKE_Fortran_COMPILER mpifort CACHE STRING "Fortran compiler" FORCE) # Fortran compiler for parallel build
     endif()
-    set(comp_flags "-O3 -fno-strict-aliasing -funroll-loops -march=native -std=c++0x" CACHE  STRING  "comp_flags to add" FORCE)
+    set(comp_flags -O3 -fno-strict-aliasing -funroll-loops -march=native -std=c++0x CACHE  STRING  "comp_flags to add" FORCE)
 endif()
 
 #specify stuff for run-script