Using LLVM 19.1, I managed to link all libraries in CMakeLists.txt with:
CMakeLists.txt
llvm_map_components_to_libnames(llvm_libs -19)