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

fix : changed call from make to cmake --build

parent 75d46c4c
No related branches found
No related tags found
2 merge requests!212Version 0.3.0,!116feat/release_pip
...@@ -75,9 +75,26 @@ class test_export(unittest.TestCase): ...@@ -75,9 +75,26 @@ class test_export(unittest.TestCase):
install_path = os.path.join(sys.prefix, "lib", "libAidge") if "AIDGE_INSTALL" not in os.environ else os.environ["AIDGE_INSTALL"] install_path = os.path.join(sys.prefix, "lib", "libAidge") if "AIDGE_INSTALL" not in os.environ else os.environ["AIDGE_INSTALL"]
shutil.copyfile(pathlib.Path(__file__).parent / "static/main.cpp", self.EXPORT_PATH / "main.cpp") shutil.copyfile(pathlib.Path(__file__).parent / "static/main.cpp", self.EXPORT_PATH / "main.cpp")
subprocess.check_call(
[
"cmake",
str(self.EXPORT_PATH.absolute()),
f"-DCMAKE_INSTALL_PREFIX:PATH={install_path}",
],
cwd=str(self.EXPORT_PATH / "build"),
)
subprocess.check_call(
["cmake", "all", "install"], cwd=str(self.EXPORT_PATH / "build")
)
self.check_call(
["cmake", "--build", "."],
cwd=str(self.EXPORT_PATH / "build"),
)
self.check_call(
["cmake", "--install", "."],
cwd=str(self.EXPORT_PATH / "build"),
)
subprocess.check_call(['cmake', str(self.EXPORT_PATH.absolute()), f'-DCMAKE_INSTALL_PREFIX:PATH={install_path}'], cwd=str(self.EXPORT_PATH / "build"))
subprocess.check_call(['make', 'all', 'install'], cwd=str(self.EXPORT_PATH / "build"))
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()
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