ソースを参照

Fix epoll-shim include dir (#4344)

when reported by pkginfo, the epoll-shim include is not part of it
Jérôme Leclercq 1 年間 前
コミット
d3aced0ce1
1 ファイル変更1 行追加2 行削除
  1. 1 2
      packages/e/epoll-shim/xmake.lua

+ 1 - 2
packages/e/epoll-shim/xmake.lua

@@ -10,9 +10,8 @@ package("epoll-shim")
 
     add_deps("cmake")
 
-    add_includedirs("include", "include/libepoll-shim")
-
     on_install("bsd", "macosx", function (package)
+        io.replace("CMakeLists.txt", [[set(CMAKE_INSTALL_INCLUDEDIR "${CMAKE_INSTALL_INCLUDEDIR}/libepoll-shim")]], "", {plain = true})
         local configs = {}
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
         table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))