[Build] Run pkg_config only on Linux, not all non-Windows
This commit is contained in:
parent
1e0237d404
commit
a7efdd9ed8
|
@ -3,7 +3,7 @@
|
|||
pkg_config = {}
|
||||
|
||||
function pkg_config.cflags(lib)
|
||||
if os.istarget("windows") then
|
||||
if not os.istarget("linux") then
|
||||
return
|
||||
end
|
||||
buildoptions({
|
||||
|
@ -12,7 +12,7 @@ function pkg_config.cflags(lib)
|
|||
end
|
||||
|
||||
function pkg_config.lflags(lib)
|
||||
if os.istarget("windows") then
|
||||
if not os.istarget("linux") then
|
||||
return
|
||||
end
|
||||
linkoptions({
|
||||
|
|
Loading…
Reference in New Issue