-
Notifications
You must be signed in to change notification settings - Fork 21
objdir
Manu Evans edited this page Mar 30, 2015
·
3 revisions
Home > [Scripting Reference](Scripting Reference) > 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.
Solutions, projects, and configurations.
path is the directory where the object and intermediate files should be stored, specified relative to the currently executing script file.
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"