Register is no more in modern C++.
Disable policy change for cmake 3.0