summaryrefslogtreecommitdiff
path: root/premake5.lua
diff options
context:
space:
mode:
authorJoel Linn <jl@conductive.de>2021-05-22 01:44:28 +0200
committerRick Gibbed <rick@gibbed.us>2021-06-02 22:28:43 -0500
commit8f44a141314c68cba689dea3186791bfffbc009e (patch)
tree1c2d93d5eade569724add327554ac5138833cf9a /premake5.lua
parentfa7f2924322698e32a3d46e8df1df971dcae7eb2 (diff)
[Linux] Helper methods for pkg-config
- Fixes linking on GCC by putting libs in link group
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/premake5.lua b/premake5.lua
index 32ac81550..f5d6d90b8 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -99,8 +99,8 @@ filter("platforms:Linux")
toolset("clang")
buildoptions({
-- "-mlzcnt", -- (don't) Assume lzcnt is supported.
- ({os.outputof("pkg-config --cflags gtk+-x11-3.0")})[1],
})
+ pkg_config.all("gtk+-x11-3.0")
links({
"stdc++fs",
"dl",
@@ -108,9 +108,6 @@ filter("platforms:Linux")
"pthread",
"rt",
})
- linkoptions({
- ({os.outputof("pkg-config --libs gtk+-3.0")})[1],
- })
filter({"platforms:Linux", "kind:*App"})
linkgroups("On")