Commit c23f89bc authored by Daniel Pfeifer's avatar Daniel Pfeifer
Browse files

cmOutputConverter::Convert: make precondition explicit

parent cd1f1cb5
......@@ -161,9 +161,11 @@ std::string cmOutputConverter::Convert(RelativeRoot remote,
OutputFormat output,
bool optional) const
{
const char* remotePath = this->GetRelativeRootPath(remote);
// The relative root must have a path (i.e. not FULL or NONE)
assert(remote != FULL);
assert(remote != NONE);
const char* remotePath = this->GetRelativeRootPath(remote);
assert(remotePath != 0);
if (!local.empty() && !optional) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment