I'm trying to debug audacity that I build from source. The build process is managed by cmake, and the dependencies are handled by conan. 2 main dependencies are portAudio and ALSA libraries. I'd like to integrate building of these 2 libraries into the building process of audacity, instead of using libraries downloaded by conan. The documentation for audacity explains how to disable conan altogather. But how can I configure cmake to download and build these libraries as a part of the building process of audacity, so that I can debug the libraries as well?
Audacity uses cmake to build, and conan to download its dependencies. I'm using GDB to debug it in Linux.