Skip to content

Unexpected MSVC_VERSION: '1950' #842

@tomwjerry

Description

@tomwjerry

Hello, on Windows 11, cmake version 4.2.3-msvc3, I have problems using Visual Studio 2026 18. The error I get is "Unexpected MSVC_VERSION: '1950'". I use Hunter 0.26.1

Error log:

-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.26200.
-- The CXX compiler identification is MSVC 19.50.35728.0
-- The C compiler identification is MSVC 19.50.35728.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.50.35717/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.50.35717/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Could NOT find DirectXSDK (missing: DXSDK_DIR DXSDK_GUID_LIBRARY DXSDK_DINPUT_LIBRARY)
-- Found Visual C++ 2022 (19.50.35728.0 with toolchain 14.50.35717) in C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.50.35717
-- Using VC++ headers from C:/Program Files/Microsoft Visual Studio/18/Community/VC/Tools/MSVC/14.50.35717/include
-- Found Windows Kit 10.0 in C:/Program Files (x86)/Windows Kits/10 (registry 32 bits)
-- Using Windows UCRT 10.0.26100.0
-- Found Windows SDK in INCLUDE environment variable: C:/Program Files (x86)/Windows Kits/10
-- Using Windows SDK 10.0
-- Found Windows.h in C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um
-- Found winstring.h in C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/winrt
-- Found d3d9.h in C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/shared
-- Found GL.h in C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um/gl
-- Found ComCtl32.lib in C:/Program Files (x86)/Windows Kits/10/Lib/10.0.26100.0/um/x64
Using DirectX from Windows SDK (C:/Program Files (x86)/Windows Kits/10/Lib/10.0.26100.0/um/x64;C:/Program Files (x86)/Windows Kits/10/Lib/winv6.3/um/x64;C:/Program Files (x86)/Windows Kits/10/Lib/win8/um/x64;C:/Program Files (x86)/Windows Kits/10/Lib/x64;C:/Program Files (x86)/Windows Kits/10/Lib/amd64)
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: C:/.hunter
-- [hunter] [ Hunter-ID: e41ac7a | Toolchain-ID: ed1d3c9 | Config-ID: 00aebb5 ]

[hunter ** INTERNAL **] Unexpected MSVC_VERSION: '1950'
[hunter ** INTERNAL **] [Directory:D:/ryzomcore-quickstart-4.0-pre3/code]

------------------------------ ERROR -----------------------------
    https://hunter.readthedocs.io/en/latest/reference/errors/error.internal.html
------------------------------------------------------------------

CMake Error at C:/.hunter/_Base/Download/Hunter/0.26.1/e41ac7a/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message):
Call Stack (most recent call first):
  C:/.hunter/_Base/Download/Hunter/0.26.1/e41ac7a/Unpacked/cmake/modules/hunter_internal_error.cmake:13 (hunter_error_page)
  C:/.hunter/_Base/Download/Hunter/0.26.1/e41ac7a/Unpacked/cmake/modules/hunter_setup_msvc.cmake:99 (hunter_internal_error)
  C:/.hunter/_Base/Download/Hunter/0.26.1/e41ac7a/Unpacked/cmake/modules/hunter_finalize.cmake:117 (hunter_setup_msvc)
  C:/.hunter/_Base/Download/Hunter/0.26.1/e41ac7a/Unpacked/cmake/modules/hunter_add_package.cmake:23 (hunter_finalize)
  CMakeLists.txt:164 (HUNTER_ADD_PACKAGE)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions