Skip to content

linkoptions

Jason Perkins edited this page Apr 14, 2015 · 7 revisions

Home > [Project API](Project API) > linkoptions


linkoptions

The linkoptions function passes arguments directly to the linker command line without translation.

linkoptions { "options" }

If a project includes multiple calls to linkoptions the lists are concatenated, in the order in which they appear in the script.

Applies To

Solutions, projects, and configurations.

Parameters

options is a list of linker flags and options, specific to a particular linker.

Examples

Use pkg-config style configuration when building on Linux with GCC. Build options are always linker specific and should be targeted to a particular toolset.

configuration { "linux", "gmake" }
  linkoptions { "`wx-config --libs`" }

Clone this wiki locally