You’ve told CMake the name of the library to link (and CMake told the linker), but nowhere have you specified where to look for this. You’ll need a link directory for this to work.
I recommend using FetchContent_MakeAvailable() instead of the old manual population pattern. It is much simpler, more robust and comes with additional features for the developer in more recent CMake releases:
Thanks Craig, that’s also what I ended up doing!
I only abandoned this because it went into an infinite loop, but that was due to CMAKE_CXX_COMPILER being changed, and not related to FetchContent.