Propagated cmake flags?

I packed all python packages in library via propagatedBuildInputs so in derivations where i use this library in cmake configure phase i use this python packages to create test environment and as derivations have no internet connection i say to pip to use only local packages via cmake flag:

-DUSERVER_PIP_OPTIONS=–no-index

It work while i build library but need to be set in packages that use this library too.

Is there way to propagate cmake flags? smth like propagatedCmakeFlags?

I believe this is normally done by your *Config.cmake/Find*.cmake, executed by find_package()

Problem is that the library is third party and i want to pack it to the nix. However I think i can use custom patch to set these flags as defaults in the library CMakelists