I am developing a small embedded system project, and have chosen CMake to be our build generator. I have a bunch of components being developed independently, and brought into the main project using the FetchContent command. The current problem I’m facing (more of an annoyance) is that each target is being installed under build/Debug/_deps. Is there a way to create subdirectories within the _deps directory to better organize all my dependencies? For example, creating a build/Debug/_deps/uart_deps for my UART components?
Setting the FETCHCONTENT_BASE_DIR var solved my problem, but it seems that the CPM.cmake tool makes everything a lot cleaner! Thanks for the recommendation!