that may because of vcpkg and msys2(MinGW) confliction. for my case, i uninstalled msys2 and use msvc + cmake and it is worked.