From 2d665aa75280e38a771c8bbc13e4ff548a0ec00c Mon Sep 17 00:00:00 2001 From: mid-kid Date: Sat, 13 Nov 2021 13:34:11 +0100 Subject: [PATCH] Accomodate for setting a different CMAKE_GENERATOR in the environment. This makes sure the right build utility is called, depending on the value of the CMAKE_GENERATOR environment. --- bindings/python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 1dc574ab..87482634 100755 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -134,7 +134,7 @@ def build_libraries(): subprocess.check_call(["cmake", '-B', BUILD_DIR, "-DCMAKE_BUILD_TYPE=" + conf]) os.chdir(BUILD_DIR) threads = os.getenv("THREADS", "4") - subprocess.check_call(["make", "-j" + threads]) + subprocess.check_call(["cmake", "--build", ".", "-j" + threads]) shutil.copy(LIBRARY_FILE, LIBS_DIR) try: