Hi,
I use CMake for C/C++ projects. My current Buildfile for VS2015 looks like this:
[code]{
“shell_cmd”: “cmake -G “Visual Studio 14 2015” “$project_path””,
"windows": {
"working_dir": "C:/Users/username/Desktop/$project_name",
},
"linux": {
"working_dir": "/home/username/Desktop/$project_name",
},
"variants":
{
"name": "CMake Debug",
"shell_cmd": "cmake -G \"Visual Studio 14 2015\" -DCMAKE_BUILD_TYPE=Debug \"$project_path\""
},
{
"name": "CMake Release",
"shell_cmd": "cmake -G \"Visual Studio 14 2015\" -DCMAKE_BUILD_TYPE=Release \"$project_path\""
}
]
}[/code]
(The Linux working directory is because I have another file for GCC)
This expects to have a .sublime-project folder on my desktop.
I would like to call it “.Build” instead of how it is called now.
But when I try
"working_dir": "C:/Users/username/Desktop/${project_name/sublime-project/Build/g}"
it does not work. Even with escaped slashes inside the curlies.
Instead the project is being build in the folder where the build file for sublime resides.
Anyone any tip for me?
Thanks
Silberling