To bring this a little more up to date here are the command line methods that worked successfully for me to include ASIO support. I use an admin terminal.
Download the current release source:-
git clone -b release-3.7.4 --depth 1 https://github.com/audacity/audacity/ audacity3_7_4
Use build.md to make sure all the pre-requisites are installed. Then run cmake as follows:-
cmake -G "Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES=Release -Daudacity_has_asio_support=On -DAUDACITY_BUILD_LEVEL=2 -S D:\audacity3_7_4 -B d:\audacity3-7-4
Provided cmake completes correctly you should find the file ALL_BUILD.vcxproj in the top level of your target folder. Open this in Visual Studio 2022 and build the project. Once built the local windows debug option should confirm all OK.
Personally I am not an experienced Audacity user I just use it to produce very high quality analogue to digital recordings so I can’t help with much else.