Browse Source

fix cmake deps for mhook

ruki 4 years ago
parent
commit
aa4974fde9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/m/mhook/xmake.lua

+ 3 - 1
packages/m/mhook/xmake.lua

@@ -11,6 +11,8 @@ package("mhook")
     add_patches("2.5.1", "https://github.com/apriorit/mhook/commit/5ccb00a9c89280bfff7ce595873a9923415172a7.patch",
     add_patches("2.5.1", "https://github.com/apriorit/mhook/commit/5ccb00a9c89280bfff7ce595873a9923415172a7.patch",
                         "56561718ccf05c8c42fff05e6531cfa525cf93e0c9fa3bd226e74ef19eae1a1f")
                         "56561718ccf05c8c42fff05e6531cfa525cf93e0c9fa3bd226e74ef19eae1a1f")
 
 
+    add_deps("cmake")
+
     on_install("windows", function (package)
     on_install("windows", function (package)
         local configs = {}
         local configs = {}
         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"))
@@ -20,4 +22,4 @@ package("mhook")
 
 
     on_test(function (package)
     on_test(function (package)
         assert(package:has_cxxfuncs("Mhook_SetHookEx", {includes = {"windows.h", "mhook-lib/mhook.h"}}))
         assert(package:has_cxxfuncs("Mhook_SetHookEx", {includes = {"windows.h", "mhook-lib/mhook.h"}}))
-    end)
+    end)