-#if !defined(SIMGRID_VERSION) // ========== SimGrid <= 3.5 ============= //
-# error "Unsupported SimGrid version. Need version > 3.5"
-#endif // ============================================================= //
+#include <simgrid_config.h>
+
+#if !defined(SIMGRID_VERSION) || SIMGRID_VERSION < 31200UL // == SG < 3.12 == //
+# error "Unsupported SimGrid version. Need version >= 3.12"
+#endif // =================================================================== //