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.
This commit is contained in:
mid-kid 2021-11-13 13:34:11 +01:00
parent 7e244f87b4
commit 2d665aa752

View File

@ -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: