objdir

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

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.

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.

project "MyProject"
   objdir "objects"

Set object directories per configuration.

configuration "Debug"
  objdir "../obj_debug"
 
configuration "Release"
  objdir "../obj_release"