Skip to content

Cannot build with Visual Studio 2022 because cpp-pm/hunter v0.23.258 does not support VS 2022. #313

@yusuke-ota

Description

@yusuke-ota

Hi.

I'm reporting an error that occurred when I tried to build this project with Visual Studio 2022.

Problem

Currently, the "cpp-pm/hunter v0.23.258" used in this project supports Visual Studio 2019 and earlier.

include("cmake/HunterGate.cmake")
HunterGate(
URL "https://github.com/cpp-pm/hunter/archive/v0.23.258.tar.gz"
SHA1 "062a19ab13ce8dffa9a882b6ce3e43bdabdf75d3"
LOCAL # Local config for dependencies
)

ref: https://github.com/cpp-pm/hunter/blob/286702056cd26b99d1ee95a30327e6ad834bc2ad/cmake/modules/hunter_setup_msvc.cmake#L87-L92

So, I cannot build this project with Visual Studio 2022.

Error:

[hunter ** INTERNAL **] Unexpected MSVC_VERSION: '1930'

Solution

Since "cpp-pm/hunter v0.23.317", "cpp-pm/hunter" supports building with Visual Studio 2022.
And I used v0.23.320 to avoid this error.

I hope you consider upgrading the dependent cpp-pm/hunter in the next update of this project.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions