diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index c683efc1b36..989b41e8094 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -884,7 +884,7 @@ end -- do install for make function _install_for_make(package, configs, opt) - local jobs = "1"--_get_parallel_njobs(opt) + local jobs = _get_parallel_njobs(opt) local argv = {"-j" .. jobs} --if option.get("diagnosis") then table.insert(argv, "VERBOSE=1") @@ -912,7 +912,11 @@ function _install_for_make(package, configs, opt) print("make") os.vexecv("make", argv) print("make install") - os.vexecv("make", {"install"}) + if package:name() == "bullet3" or package:name() == "libsdl" then + os.vexecv("dtruss", {"make", "install"}) + else + os.vexecv("make", {"install"}) + end end end