Skip to content
Manu Evans edited this page Mar 30, 2015 · 3 revisions

Home > [Scripting Reference](Scripting Reference) > objdir


objdir

The objdir function sets object and intermediate file directory for a project.

#!lua
objdir ("path")

By default, object and intermediate files are stored in a directory named "obj" in the same directory as the project. The objdir function allows you to change this location.

Updated information is available on the new Premake wiki.

Applies To

Solutions, projects, and configurations.

Parameters

path is the directory where the object and intermediate files should be stored, specified relative to the currently executing script file.

Examples

Set an object directory for a project.

#!lua
project "MyProject"
   objdir "objects"

Set object directories per configuration.

#!lua
configuration "Debug"
  objdir "../obj_debug"
 
configuration "Release"
  objdir "../obj_release"
Clone this wiki locally