Xcode: There is no option to specify working directory for xcode scheme generator
I trying to migrate our MacOS desktop xcodeproj to cmake. As a first step I try to reproduce exact xcode project with -GXcode generator and failed we have scheme with custom working directory.
set(CMAKE_XCODE_GENERATE_SCHEME true)
Is enabled to generate custom runnable with special settings. One of the settings is custom working directory.
I noticed that scheme generator always generate useCustomWorkingDirectory
with "NO"
value and there is no setting to alert this behavior.
It will be nice to have this option in scheme generator per target.
For example target property XCODE_SCHEME_CUSTOM_WORKING_DIRECTORY
with will set "useCustomWorkingDirectory"
to "YES"
and customWorkingDirectory
to passed value both for launch action and profiling or something special to specify it independently.
As a workaround I specify this working directory after each regeneration but it looks a bit strange.