Visual Studio 2010 Express, Windows SDK 7.1, CMake and 64 bit

I am having problems creating a 64-bit Visual Studio 2010 Express project through CMake. First, I installed VS2010 Express, and then the Windows 7.1 SDK to be able to create 64-bit applications, and then tried to compile my CMake project.

I don’t remember it being so difficult with 2008 Express, but since 2010 I have been failing again and again. 2010 is looking by default for the 7.0a SDK that comes with it. The express version seems to send a smaller 32-bit version located under

.../Program Files(X86)/Microsoft SDKs/Windows/7.0a 

Windows SDK 7.1 64bit will be installed by default in

 .../Program Files/Microsoft SDKs/Windows/7.0 

In VS 2010 Express, SDK platforms can be changed based on each project card, and if I do, the inherited path macros surprisingly point to the correct SDK. Now the problem is that CMake is not happy that I myself am cheating on project files. Thus, it always resets the Platform SDK entry to the default value, which will make the Windows SDK equal to 7.0a and lead to complaints about the lack of 64-bit libraries.

Now I see two possibilities to solve this problem:

  • Find a way to truly integrate the 7.1 SDK into the VS2010 Express, just like the VS2008. VS2008 looks in the registry for the tag "CurrentInstallFolder" in the Windows SDK entry, and you can change this entry to point to another SDK.

  • Find a way to tell CMake (2.8.1) to install the correct Platform SDK in the project. There is no plan how to do this ...

I would be grateful for any help. 2010, unfortunately, is somewhat obligatory, I personally cannot get used to it at all ...

+2
64bit winapi visual-studio-2010 cmake
Apr 03 '14 at 16:19
source share
1 answer

So, updating to the latest version of CMake (2.8.12) resolved this, CMake now detects the 7.1 SDK and installs it in the project files.

Edit: The toolbox can be selected in the CMake file using the flag CMAKE_GENERATOR_TOOLSET

+1
Apr 04 '14 at 12:30
source share



All Articles