[test][gridmanager] add missing cmake guard

Merged Dennis Gläser requested to merge fix/pnm-cmake-guards into master

Merge request reports