set CMAKE_PREFIX_PATH for cmake packages (#5364)
set CMAKE_PREFIX_PATH for cmake packages (#5364)

* cmake: set CMAKE_PREFIX_PATH

* cmake: use build/link immediate dependencies to construct CMAKE_PREFIX_PATH

mfherbst/spack,skosukhin/spack,matthiasdiener/spack,matthiasdiener/spack,EmreAtes/spack,tmerrick1/spack,LLNL/spack,iulian787/spack,iulian787/spack,tmerrick1/spack,LLNL/spack,EmreAtes/spack,lgarren/spack,lgarren/spack,skosukhin/spack,matthiasdiener/spack,EmreAtes/spack,tmerrick1/spack,iulian787/spack,krafczyk/spack,LLNL/spack,mfherbst/spack,EmreAtes/spack,skosukhin/spack,mfherbst/spack,LLNL/spack,mfherbst/spack,tmerrick1/spack,krafczyk/spack,krafczyk/spack,TheTimmy/spack,TheTimmy/spack,EmreAtes/spack,LLNL/spack,lgarren/spack,tmerrick1/spack,matthiasdiener/spack,TheTimmy/spack,krafczyk/spack,TheTimmy/spack,matthiasdiener/spack,skosukhin/spack,krafczyk/spack,iulian787/spack,mfherbst/spack,lgarren/spack,TheTimmy/spack,lgarren/spack,skosukhin/spack,iulian787/spack