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

feat : added option to change build_backend

parent 12dc8981
No related branches found
No related tags found
2 merge requests!93Release v0.3.0,!64Feat/release pip
Pipeline #50290 failed
...@@ -56,13 +56,22 @@ class AidgePkgBuild(build_ext): ...@@ -56,13 +56,22 @@ class AidgePkgBuild(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"]
) )
# 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 []
)
self.spawn( self.spawn(
[ [
"cmake", "cmake",
*build_gen,
str(cwd), str(cwd),
"-DTEST=OFF",
f"-DCMAKE_INSTALL_PREFIX:PATH={install_path}", f"-DCMAKE_INSTALL_PREFIX:PATH={install_path}",
f"-DCMAKE_BUILD_TYPE={compile_type}", f"-DCMAKE_BUILD_TYPE={compile_type}",
"-DTEST=OFF",
"-DPYBIND=ON", "-DPYBIND=ON",
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON", "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
"-DCOVERAGE=OFF", "-DCOVERAGE=OFF",
......
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