Enable premake linkgroups when building Linux applications

The linkgroups option is a convenience option that makes it
possible to specify all the libraries required to build an
application (console or GUI) in any order. It also prevents
circular dependency issues between libraries.

Basically, it surrounds the list of libraries with the
start-group/end-group options when calling the linker.
This commit is contained in:
sephiroth99 2017-04-26 02:25:12 -04:00 committed by Doug Johnson
parent 6bf05d6e63
commit c438458426
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ filter("platforms:Linux")
"`pkg-config --libs gtk+-3.0`", "`pkg-config --libs gtk+-3.0`",
}) })
filter({"platforms:Linux", "kind:*App"})
linkgroups("On")
filter({"platforms:Linux", "language:C++", "toolset:gcc"}) filter({"platforms:Linux", "language:C++", "toolset:gcc"})
buildoptions({ buildoptions({
"--std=c++11", "--std=c++11",