diff options
| author | ruki <[email protected]> | 2018-08-21 22:54:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-08-21 11:26:12 +0800 |
| commit | 3519fbff209ebf0b99290a780c1cc425b5ab99d8 (patch) | |
| tree | 4ea89d0827f76af62465ac12384720fcb0c55654 /xmake/modules/lib/detect/pkg_config.lua | |
| parent | 0ba43c443b64019b87721f3af47675ab9d8226ec (diff) | |
support vcpkg for lib.detect.find_package
Diffstat (limited to 'xmake/modules/lib/detect/pkg_config.lua')
| -rw-r--r-- | xmake/modules/lib/detect/pkg_config.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/lib/detect/pkg_config.lua b/xmake/modules/lib/detect/pkg_config.lua index 11782b250..fc991393d 100644 --- a/xmake/modules/lib/detect/pkg_config.lua +++ b/xmake/modules/lib/detect/pkg_config.lua @@ -54,8 +54,8 @@ function info(name, opt) -- get it from cache first local result = _g._INFO[name] - if result then - return result + if result ~= nil then + return result and result or nil end -- get pkg-config path from brew @@ -132,7 +132,7 @@ function info(name, opt) end -- save result to cache - _g._INFO[name] = result + _g._INFO[name] = result and result or false -- ok? return result |
