for cmake policy CMP0042 (see cmake --help-policy CMP0042)