Add warning messages to CMakeLists.txt