cmake Windows 10 SDK

前端 未结 1 1941
猫巷女王i
猫巷女王i 2021-01-22 10:44

tried to compile VTK using cmake on Windows 10 with Visual Studio compiler ... however, cmake says \"Could not find an appropriate version of the Windows 10 SDK installed on thi

1条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-22 11:33

    I've have the same issue and in my case it's because the SDK I just installed is targeting 10.0.10586.0

    ls "C:\Program Files (x86)\Windows Kits\10\include\"
    
    
        Directory: C:\Program Files (x86)\Windows Kits\10\include
    
    
    Mode                LastWriteTime         Length Name
    ----                -------------         ------ ----
    d-----        12/4/2015  12:27 AM                10.0.10586.0
    

    But my system is detected by cmake as:

    The system is: Windows - 10.0.10240 - AMD64

    If you rename the include\10.0.10586.0 folder to include\10.0.10240, the SDK will be found.

    0 讨论(0)
提交回复
热议问题