Skip to content

targetprefix

TurkeyMan edited this page Mar 12, 2015 · 7 revisions

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


targetprefix

The targetprefix function specifies the file name prefix for the compiled binary target.

#!lua
targetprefix ("prefix")

By default, the system naming convention will be used: a "lib" prefix for POSIX libraries (as in libMyProject.so), and no prefix elsewhere. The targetprefix function allows you to change this default.

Applies To

Solutions, projects, and configurations.

Parameters

prefix is the new file name prefix.

See Also

Examples

#!lua
targetprefix "plugin"

The prefix may also be set to an empty string for no prefix.

#!lua
targetprefix ""
Clone this wiki locally