Skip to content
Discussion options

You must be logged in to vote

Thanks, that explains why the command was missing. My previous answer missed an important detail: CMake Tools uses either Presets mode or Kits mode for a folder. With cmake.useCMakePresets set to auto, the presence of CMakePresets.json enables Presets mode, and the kit commands are intentionally unavailable. Therefore, environmentSetupScript is only an option if you disable preset integration with "cmake.useCMakePresets": "never".

You are also right about the limitation. The CMake Presets schema supports an environment map, but it has no standard field for sourcing an arbitrary setup script. So there is currently no preset equivalent of environmentSetupScript.

You do not need to duplicate…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@xXxslavchickxXx
Comment options

@xXxslavchickxXx
Comment options

@xXxslavchickxXx
Comment options

@meyshad
Comment options

Answer selected by xXxslavchickxXx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants