2
0
choyy 1 өдөр өмнө
parent
commit
a29c5ec163

+ 1 - 0
packages/f/freetype/xmake.lua

@@ -70,6 +70,7 @@ package("freetype")
     end)
     end)
 
 
     on_install(function (package)
     on_install(function (package)
+        io.replace("CMakeLists.txt", "cmake_minimum_required(VERSION 3.12", "cmake_minimum_required(VERSION 3.25", {plain = true})
         local configs = {"-DCMAKE_INSTALL_LIBDIR=lib"}
         local configs = {"-DCMAKE_INSTALL_LIBDIR=lib"}
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
         table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))