[Build] Run pkg_config only on Linux, not all non-Windows

This commit is contained in:
Triang3l 2021-07-20 20:16:39 +03:00
parent 1e0237d404
commit a7efdd9ed8
1 changed files with 2 additions and 2 deletions

View File

@ -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({