Skip to content

libdirs

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

The libdirs function specifies the library search paths.

libdirs { "paths" }

Library search directories are not well supported by the .NET tools. Visual Studio will change relative paths to absolute, making it difficult to share the generated project. MonoDevelop and SharpDevelop do not support search directories at all, using only the GAC. In general, it is better to include the full (relative) path to the assembly in links instead. C/C++ projects do not have this limitation.

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

Applies To

Solutions, projects, and configurations.

Parameters

paths specifies a list of library search directories. Paths should be specified relative to the currently running script file.

Examples

Define two library file search paths.

libdirs { "../lua/libs", "../zlib" }

You can also use wildcards to match multiple directories. The * will match against a single directory, ** will recurse into subdirectories as well.

libdirs { "../libs/**" }
Clone this wiki locally