diff --git a/rebuild-libs.py b/rebuild-libs.py index dfea16e..0de34f1 100755 --- a/rebuild-libs.py +++ b/rebuild-libs.py @@ -964,7 +964,8 @@ def build_freetype(): run_command([ "cmake", - "--build", "build" + "--build", "build", + "--config", "RelWithDebInfo" ], cwd=lib_dir) @@ -973,7 +974,7 @@ def build_freetype(): os.makedirs(target + "/freetype/include", exist_ok=True) os.makedirs(target + "/freetype/dist", exist_ok=True) if target == 'windows': - shutil.copy(lib_dir + "/build/freetype.lib", target + "/freetype/lib/") + shutil.copy(lib_dir + "/build/RelWithDebInfo/freetype.lib", target + "/freetype/lib/") else: #todo: check what gets build on other oses: shutil.copy(lib_dir + "/build/libfreetype.a", target + "/freetype/lib/")