Skip to content

Commit

Permalink
fix pkgconfig search name
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Nov 10, 2024
1 parent ffd62c8 commit c24b148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ index d1b5e5a..5d20e57 100644
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/third-party/easylogging")
- find_package(EASYLOGGINGPP MODULE)
+ include(FindPkgConfig)
+ pkg_search_module("EASYLOGGINGPP" REQUIRED IMPORTED_TARGET "EASYLOGGINGPP")
+ pkg_search_module("EASYLOGGINGPP" REQUIRED IMPORTED_TARGET "easyloggingpp")
if (EASYLOGGINGPP_FOUND)
message(STATUS "easyloggingpp: pre-installed easyloggingpp found")
- get_target_property(
Expand Down
2 changes: 1 addition & 1 deletion packages/h/hexl/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ package("hexl")
if package:is_debug() then
package:add("deps", "easyloggingpp")
package:add("deps", (is_subhost("windows") and "pkgconf") or "pkg-config")
package:add("patches", "1.2.5", "patches/1.2.5/cmake-find-easyloggingpp.patch", "d284399824952840318e53599978bff6491e3e95f41fae7ccd584d2e6c1fa52d")
package:add("patches", "1.2.5", "patches/1.2.5/cmake-find-easyloggingpp.patch", "7b239bebc13cd9548334b4dfcc84f1a11895c37e08b414d87e5ce81c944fb239")
end
end)

Expand Down

0 comments on commit c24b148

Please sign in to comment.