diff --git a/setup.py b/setup.py
index 5318fa34d192a2d6a81659cad40d752f5541ec67..852da8432c29cf6b7370946289c429479d506228 100644
--- a/setup.py
+++ b/setup.py
@@ -52,11 +52,10 @@ 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"]
+            else []
         )
 
         self.spawn(