ENH: Update CMake deprecated commands with new equivalents

Change-Id: Ia2c8146edd54909b45678be5ce181cb17fa7d718
Merge topic 'CMake-Deprecated' into master

8d41aea8 ENH: Update CMake deprecated commands with new equivalents