I found the thing that worked best for me was to use the sysroot I retrieved off of my target. I needed to add some extra flags due to the structure of the raspberry pi's sysroot. Namely
-B/<path to r pi system.o files>/
and
CMAKE_INSTALL_RPATH
as both of