I extended ROCm support to Navi22 but how can I use the extended libraries at compile time?

I extended some ROCm libraries including rocThrust and rocPRIM to support Navi22 i.e. gfx1031. Now I have two versions installed, the default one from the RHEL9.1 installation and the custom ones, that support Navi22. They work, I ran all the tests. The problem is, when I try to compile my own programs, the hipcc compiler keeps using the default libraries resulting in compilation errors.

The following doesn’t work: hipcc --offload-arch=gfx1031 -I=/opt/rocm-5.4.0/myspecialrocm/include/thrust -I=/opt/rocm-5.4.0/myspecialrocm/include/rocprim discrete_voronoi.cu -o testvoronoi

The above example is also a test example that comes with the library and works just fine when compiled during the installation of the header library

How can I overwrite /opt/rocm-5.4.0/include/thrust with /opt/rocm-5.4.0/myspecialrocm/include/thrust so the compiler uses the latter one which supports Navi22?