CMakeLists.txt: only set policy version 2.8.12 on versions 2.8.12 or newer