diff options
| author | Zhe Chen <[email protected]> | 2018-12-19 21:16:07 +0900 |
|---|---|---|
| committer | Zhe Chen <[email protected]> | 2018-12-19 21:16:07 +0900 |
| commit | 463b684ccd9a7984be37dbfc21b92451c9a0d92f (patch) | |
| tree | 11cf34df5eaaa4e9eca1475ec8681bf65ac0366a /xmake/modules | |
| parent | 3a5cc968f1bc79ad6bb1ea7cc62b3c0a7d361732 (diff) | |
Fix typos.
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/lib/detect/pkg_config.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/lib/detect/pkg_config.lua b/xmake/modules/lib/detect/pkg_config.lua index 8c08254dd..fbd37af1a 100644 --- a/xmake/modules/lib/detect/pkg_config.lua +++ b/xmake/modules/lib/detect/pkg_config.lua @@ -86,9 +86,9 @@ function info(name, opt) -- find the prefix directory of brew directly, because `brew --prefix name` is too slow! if not opt.mode or opt.mode == "release" then local brew_pkg_root = try { function () return os.iorunv(brew, {"--prefix"}) end } or "/usr/local" - if opt.plat == "linux" then + if opt.plat == "macosx" then brew_pkg_root = brew_pkg_root .. "/Cellar/" - elseif opt.plat == "macosx" then + elseif opt.plat == "linux" then brew_pkg_root = brew_pkg_root .. "/opt/" end |
