Are you using the VS generator? This was recently fixed in VS and CMake.
https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8471
So, you need a new version of CMake ad VS.
Are you using the VS generator? This was recently fixed in VS and CMake.
https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8471
So, you need a new version of CMake ad VS.