Modified CMakeLists.txt for an error message.