summaryrefslogtreecommitdiff
path: root/Source/cmCoreTryCompile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-08 00:26:50 +0200
committerStephen Kelly <steveire@gmail.com>2015-10-15 00:41:40 +0200
commit55474e6182b49acc4183fffdebccc7ae2a7335fa (patch)
treefc5d65f70f0cc9159d93de0bfed3f4f913950096 /Source/cmCoreTryCompile.cxx
parent38df5c36d66313a5dd7859c1c55a41f60f141b13 (diff)
downloadcmake-55474e6182b49acc4183fffdebccc7ae2a7335fa.tar.gz
cmState: Move GetTargetTypeName from cmTarget.
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r--Source/cmCoreTryCompile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index de3f99213c..5bb0f99b9e 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -107,7 +107,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
this->Makefile->IssueMessage(cmake::FATAL_ERROR,
"Only libraries may be used as try_compile or try_run IMPORTED "
"LINK_LIBRARIES. Got " + std::string(tgt->GetName()) + " of "
- "type " + tgt->GetTargetTypeName(tgt->GetType()) + ".");
+ "type " + cmState::GetTargetTypeName(tgt->GetType()) + ".");
return -1;
}
if (tgt->IsImported())