Skip to content

libdirs

starkos edited this page Apr 10, 2021 · 9 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Specifies the library search paths for the linker.

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 does 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.

Parameters

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

Applies To

Project configurations.

Availability

Premake 4.0 or later.

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