[CMake] Fixing passthrough for variables starting with the sub-project name