Browse Source

freetype: fix cmake (#8153)

choyy 1 day ago
parent
commit
a29c5ec163
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/f/freetype/xmake.lua

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

@@ -70,6 +70,7 @@ package("freetype")
     end)
 
     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"}
         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"))