Description
Request Overview
I have an environment setup script that comes from Open Embedded and is used for setting up a cross-compilation build environment.
When sourced, it sets along many other things, the path to cmake.
In my cmake-kits.json, I have a kit that has the following setting:
"environmentSetupScript": "/foo/environment-setup-bar"
However, when running cmake configure, cmake is still found in /usr/bin/cmake, which is the default path, and not the path set up by the setup script.
My workaround is to put an explicit path in .vscode/settings.json:
"cmake.cmakePath" : "/some/long/absolute/path/cmake"
But that approach doesn't let me switch between kits with different cmake paths.
I also tried to set the following:
define an environment variable in cmake-kits.json:
"environmentVariables": {
"MY_CMAKE_PATH" : "/some/long/absolute/path"
},
and then in .vscode/settings.json:
"cmake.cmakePath" : "{env:MY_CMAKE_PATH}"
But that doesn't seem to work too.
Note: I'm not using CMake presets, AFAIK there's no way to source an environment setup script in a preset.
Additional Information
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status