Windows 10 SDK can't be configured (Gradle 4.1)


(ylemoigne) #1

In a cpp build, gradle won’t detect windows 10 SDK.

Regarding the detection mechanism : https://github.com/gradle/gradle/blob/master/subprojects/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/msvcpp/DefaultWindowsSdkLocator.java

It’s seems to be locked to Win8, as the isWindowsSdk method will loop over

private static final String KERNEL32_PATHS[] = {
        "lib/winv6.3/um/x86/",
        "lib/win8/um/x86/",
        "lib/"
};

to find kernel.lib and the win10 SDK layout is : Windows Kits\10\Lib\10.0.10240.0\um\x86

((Setup done with Visual C++ Build tools 2015 installer downloaded from http://landinghub.visualstudio.com/visual-cpp-build-tools )