MB-22602: Use CMake variables for target paths