1. 12 Apr, 2017 1 commit
    • Brad King's avatar
      VS: Add an environment variable for the Windows 10 kits directory · fee01194
      Brad King authored
      Define a `CMAKE_WINDOWS_KITS_10_DIR` environment variable to allow
      users to tell CMake about a custom Windows 10 SDK directory.  We
      choose to make this an environment variable rather than a CMake
      variable or cache entry because:
      * Using a custom directory also requires custom external MSBuild
        configuration.  Therefore users are already configuring a
        custom environment.
      * The custom directory must be set consistently in all parts of
        a build including nested projects.  An environment variable
        avoids requiring users to thread the setting into nested builds.
      Fixes: #16743
  2. 21 Jan, 2016 1 commit
    • Brad King's avatar
      VS: Do not fail on Windows 10 with VS 2015 if no SDK is available (#15929) · d7e863c1
      Brad King authored
      Since commit v3.4.0-rc1~5^2~1 (VS: Add support for selecting the Windows
      10 SDK, 2015-09-30) the VS 2015 generator requires a Windows 10 SDK to
      be available when CMAKE_SYSTEM_VERSION specifies Windows 10 (e.g.  when
      building on a Windows 10 host).  Howewver, it is possible to install VS
      2015 without any Windows 10 SDK.  Instead of failing with an error
      message about the lack of a Windows 10 SDK, simply tolerate this case
      and use the default Windows 8.1 SDK.  Since building for Windows Store
      still requires the SDK, retain the diagnostic in that case.
  3. 02 Oct, 2015 1 commit
    • Gilles Khouzam's avatar
      VS: Add support for selecting the Windows 10 SDK (#15670) · 3f077996
      Gilles Khouzam authored
      Teach the VS 2015 generator to produce a WindowsTargetPlatformVersion
      value.  Use the CMAKE_SYSTEM_VERSION to specify the version and if not
      set choose a default based on available SDKs.  Activate this behavior
      when targeting Windows 10.
      Co-Author: Brad King <brad.king@kitware.com>