Closed mcuee closed 8 months ago
Same issue with cmake version 3.28.1 under MSYS2 mingw64.
$ cmake -B build
-- Building for: Ninja
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- hidapi: v0.14.0
-- Configuring done (4.9s)
-- Generating done (0.0s)
-- Build files have been written to: C:/work/libusb/hidapi/build
$ cmake --build build
[4/4] Linking C shared library src\windows\libhidapi.dll
$ cmake --version
cmake version 3.28.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
No issue with VS2019 cmake.
PS C:\work\libusb\hidapi> cmake -B build_vs2019
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.29.30153.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- hidapi: v0.14.0
-- Configuring done
-- Generating done
-- Build files have been written to: C:/work/libusb/hidapi/build_vs2019
PS C:\work\libusb\hidapi> cmake --build .\build_vs2019 --config Release
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Checking Build System
Building Custom Rule C:/work/libusb/hidapi/windows/CMakeLists.txt
hid.c
hidapi_descriptor_reconstruct.c
Generating Code...
Creating library C:/work/libusb/hidapi/build_vs2019/src/windows/Release/hidapi.lib and object C:/work/libusb/hidap
i/build_vs2019/src/windows/Release/hidapi.exp
hidapi_winapi.vcxproj -> C:\work\libusb\hidapi\build_vs2019\src\windows\Release\hidapi.dll
Building Custom Rule C:/work/libusb/hidapi/CMakeLists.txt
PS C:\work\libusb\hidapi> cmake --version
cmake version 3.20.21032501-MSVC_2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Currently hidapi seems to detect my MSYS2 mingw64 CMake version wrongly.