MarkSchofield / WindowsToolchain

A repository containing a CMake toolchain for using MSVC
MIT License
106 stars 19 forks source link

Change example defaults to build by default #94

Closed MarkSchofield closed 9 months ago

MarkSchofield commented 9 months ago

The 'CMakePresets.json' file in the 'example' folder opts-in to functionality that requires opt-in features from Visual Studio:

  1. VS_USE_SPECTRE_MITIGATION_RUNTIME - This uses the Spectre-mitigation runtimes by default, but Visual Studio doesn't install them by default.
  2. VS_EXPERIMENTAL_MODULE - This adds the Visual Studio-shipped modules for C++ to the path, but Visual Studio doesn't install them by default.

Setting these options to OFF means that a default install of Visual Studio - with the C++ workload - should be able to build the examples.