Fix CMake warnings for Policy CMP0054

CMake code was adjusted to fix warnings about new behavior introduced
with CMake 3.1.0
Remove Debug Messages in CMake files