Skip to content

Support for microsoft.com/VisualStudioSettings/CMake/1.0 vendor option in CMakePresets.json  #1885

Description

@JasonDictos

Brief Issue Summary

CMakePresets for windows targets using msvc cannot be configured easily as there is no support for the cmakeGenerateCommand vendor option. The only reason this is useful is due to the fact that we must call vcvarsall.bat to load all the required envs to build against msvc. We've been achomplishing this through bat files that use vswhere to first locate, then execute the vcvarsall bat file.

Note I am able to use cmake presets in visual studio 2019 preview, and it works great.

The vendor section in question is:

				"microsoft.com/VisualStudioSettings/CMake/1.0": {
					"cmakeGenerateCommand": "setup.bat Debug"
				}
			}

I will note that this is in the json schema definition in vscode, however there is no logic to execute it.

So until this is supported I am relying on the cmake-kits/cmake-variants flow as it supports the option 'environmentSetupScript'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: presetsenhancementan enhancement to the product that is either not present or an improvement to an existing featurestale-oldto use with the close-old-issues bot

    Type

    No type

    Projects

    • Status
      Pending Prioritization

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions