You can specify custom CMake arguments when building dependency using profiles, but relative path are not forwarded correctly as of right now.
There should be a whitelist of arguments that should be transformed into absolute path when passing down to dependencies.