zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.53k stars 2.34k forks source link

Cmake error when trying to build for Win32 and Visual Studio 12 2013 #4573

Open gitzko opened 1 year ago

gitzko commented 1 year ago

Please use this template for reporting suspected bugs or requests for help.

Issue description

cmake -G "Visual Studio 12 2013" ..

results in: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(61,5): error MSB8013: This project doesn't contain the Configuration and Platform combination of Debug|Win32. [C:\libzmq-master\build\CMakeFiles\3.26.0-msvc3\VCTargetsPath.vcxproj]

Environment

Minimal test code / Steps to reproduce the issue

  1. cmake -G "Visual Studio 12 2013" ..

What's the actual result? (include assertion message & call stack if applicable)

Error C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(61,5): error MSB8013: This project doesn't contain the Configuration and Platform combination of Debug|Win32. [C:\libzmq-master\build\CMakeFiles\3.26.0-msvc3\VCTargetsPath.vcxproj]

This file is generated C:\libzmq-master\build\CMakeFiles\3.26.0-msvc3\VCTargetsPath.vcxproj and holds the <ProjectConfiguration Include="Debug|x86"> instead of <ProjectConfiguration Include="Debug|Win32">

What's the expected result?

The cmake succeeds and the file C:\libzmq-master\build\CMakeFiles\3.26.0-msvc3\VCTargetsPath.vcxproj should probably hold <ProjectConfiguration Include="Debug|Win32">

gitzko commented 1 year ago

This is the proper CMAKE command in my case:

cmake -G"Visual Studio 12 2013" -A Win32 ..