diff --git a/setup.py b/setup.py
index 19289dc2d9489a1b16f2dc36daa58dd947bf78cc..5f3de53f4af18a42e19af7b535a143324d93190e 100644
--- a/setup.py
+++ b/setup.py
@@ -52,13 +52,11 @@ class CMakeBuild(build_ext):
             else os.environ["AIDGE_INSTALL"]
         )
 
+        # using ninja as default build system to build faster and with the same compiler as on windows
         build_gen = (
             ["-G", os.environ["AIDGE_BUILD_GEN"]]
             if "AIDGE_BUILD_GEN" in os.environ
-            else [
-                -G,
-                "Ninja",
-            ]  # using ninja as default build system to build faster and with the same compiler as on windows
+            else ["-G", "Ninja"]
         )
 
         self.spawn(