disable C++ language checks in cmake