cmOutputConverter::Convert: make precondition explicit

This commit is contained in:
Daniel Pfeifer 2016-06-20 22:11:20 +02:00
parent cd1f1cb544
commit c23f89bc76
1 changed files with 4 additions and 2 deletions

View File

@ -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) {