c++ – CMake: Add presets with Visual Studio 2002 and 2022 generators
I have project that was built using Visual Studio NET (2002) with Visual C++ 7.0
I need to add CMake with ability to generate project for Visual Studio 2002 or latest (Visual Studio 2022) depending on which build you choose (legacy or latest). The first one should use Visual C++ 7 and second one latest version of Visual C++
I started of thinking about CMakePresets and using two presets with Visual Studio 2002 and Visual Studio 2022 generators, but first one is removed from CMake 3.2 I guess.
CMake wiki says: Instead of Visual Studio 2002 generator I should use NMake makefiles. I have no idea how should I make this file to use MSVC 7 compiler, because I don’t know how to get path to compiler path without hardcoding.
Read more here: Source link
