On my system cmake --version
cmake version 3.22.22040401-MSVC_2
On Jul 6, 2022, at 2:36 PM, Richard Sharpe <realrichardsharpe@xxxxxxxxx> wrote:
> I decided to upgrade to Visual Studio 2022 using the instructions here:
>
> https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWindows.html
>
> I then followed the instructions but when I ran cmake I get the
> following error. Is there any way around this?
> ------------------------------------
> C:\Program Files\Microsoft Visual Studio\2022\Community>cmake -G
> "Visual Studio 17 2022" -A x64
> C:\Users\Richard.Sharpe.A00187\source\wireshark-official
> CMake Error: Could not create named generator Visual Studio 17 2022
>
> Generators
> * Visual Studio 16 2019 = Generates Visual Studio 2019 project files.
> Use -A option to specify architecture.
> Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
> Optional [arch] can be "Win64" or "ARM".
> Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
> Optional [arch] can be "Win64" or "ARM".
One way to work around it is to run CMake 3.21 or later, according to:
https://cmake.org/cmake/help/latest/generator/Visual%20Studio%2017%202022.html
which says that the VS 17 2022 generator is "New in version 3.21."
The version that comes with VS 2019 is 3.20.21032501-MSVC_2.
If VS 2022 includes CMake, hopefully Microsoft realized that they need to ship a version that supports VS 2022.
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives: https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe