From 927af09f30039e1f7c42939354cdf64109599018 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me>
Date: Mon, 1 Jul 2024 16:31:26 +0200
Subject: [PATCH] fix : changed call from make to cmake --build

---
 aidge_core/unit_tests/test_export.py | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/aidge_core/unit_tests/test_export.py b/aidge_core/unit_tests/test_export.py
index 3061d7940..83018403c 100644
--- a/aidge_core/unit_tests/test_export.py
+++ b/aidge_core/unit_tests/test_export.py
@@ -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"]
 
         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__':
     unittest.main()
-- 
GitLab