MantisBT - CMake
View Issue Details
0014490CMakeCMakepublic2013-10-17 08:392014-03-05 09:58
Domagoj Saric 
 
normalmajoralways
closedno change required 
Windows
CMake 2.8.12 
 
0014490: Wrong Windows SDK location detected
I use Visual Studio 2010 Express with SP1 and I installed the Windows SDK 7.1 into a non default/'standard' location (D:/3rdParty/WindowsSDK/7.1) yet CMake reports:

Found Windows SDK v7.1: C:\Program Files\Microsoft SDKs\Windows\v7.1\

and then fails with:


CMake Error at C:/Program Files (x86)/CMake/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process):
  execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  C:/Program Files (x86)/CMake/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:62 (project)


ps. even if I did install it into the default location, the detected/reported location would still be wrong because it point to the 64 bit Program Files (whereas the SDK installs into the x86 version)

pps. I tried to solve the problem with directory symlinks but it did not help...
No tags attached.
Issue History
2013-10-17 08:39Domagoj SaricNew Issue
2013-10-17 08:40Domagoj SaricNote Added: 0034137
2013-10-17 08:49Brad KingNote Added: 0034138
2013-10-29 07:39Domagoj SaricNote Added: 0034279
2013-10-29 08:26Brad KingNote Added: 0034280
2013-10-29 08:26Brad KingStatusnew => resolved
2013-10-29 08:26Brad KingResolutionopen => no change required
2014-03-05 09:58Robert MaynardNote Added: 0035301
2014-03-05 09:58Robert MaynardStatusresolved => closed

Notes
(0034137)
Domagoj Saric   
2013-10-17 08:40   
I forgot to mention that I'm trying to use the "Visual Studio 10 Win64" generator (that's why the Windows SDK is needed)...
(0034138)
Brad King   
2013-10-17 08:49   
The lookup takes place here:

http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmGlobalVisualStudio10Generator.cxx;hb=v2.8.12#l328 [^]

and simply uses the registry value

 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1;InstallationFolder
(0034279)
Domagoj Saric   
2013-10-29 07:39   
Thanks, I checked and the value in the registry is wrong so it appears that the SDK installer is broken (indeed I've found many reports of installation problems with this particular Windows SDK version)...so feel free to close the ticket...
(0034280)
Brad King   
2013-10-29 08:26   
Great, thanks for reporting back.
(0035301)
Robert Maynard   
2014-03-05 09:58   
Closing resolved issues that have not been updated in more than 4 months