Fix dependency in cmake script.