Skip to content
Snippets Groups Projects
Commit c1322bd1 authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

fix : disabled ninja for windows build because it fails in the CI

parent f27e4768
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ import os ...@@ -3,6 +3,7 @@ import os
import shutil import shutil
import pathlib import pathlib
import multiprocessing import multiprocessing
import platform
from math import ceil from math import ceil
...@@ -51,11 +52,12 @@ class CMakeBuild(build_ext): ...@@ -51,11 +52,12 @@ class CMakeBuild(build_ext):
if "AIDGE_INSTALL" not in os.environ if "AIDGE_INSTALL" not in os.environ
else os.environ["AIDGE_INSTALL"] else os.environ["AIDGE_INSTALL"]
) )
# Ninja doesn't work for windows build on the ci for now
build_gen = ["-G", "Ninja"] if "Windows" in platform.system() else []
self.spawn( self.spawn(
[ [
"cmake", "cmake",
"-GNinja", # using ninja as build system to build faster and with the same compiler as on windows *build_gen, # using ninja as build system to build faster and with the same compiler as on windows
str(cwd), str(cwd),
"-DTEST=OFF", "-DTEST=OFF",
f"-DCMAKE_INSTALL_PREFIX:PATH={install_path}", f"-DCMAKE_INSTALL_PREFIX:PATH={install_path}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment