summaryrefslogtreecommitdiff
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2012-09-05 01:44:11 +0200
committerPeter Kümmel <syntheticpp@gmx.net>2012-09-05 14:38:49 +0200
commit7b2bf28e183b5eacc22fe3030f0439853746f0bd (patch)
tree24420af73ff7396981a950a7553aa90bd3d77b48 /Source/cmNinjaTargetGenerator.cxx
parent508ed6940b447c2fb6b5fe4f036138ce57ab3c4c (diff)
downloadcmake-7b2bf28e183b5eacc22fe3030f0439853746f0bd.tar.gz
Ninja: suppress cmcldeps only for source file signature try_compiles
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 918f5827e7..4cc23cacfd 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -355,8 +355,7 @@ cmNinjaTargetGenerator
if (lang == "C" || lang == "CXX" || lang == "RC")
{
clDepsBinary = mf->GetSafeDefinition("CMAKE_CMCLDEPS_EXECUTABLE");
- if (!clDepsBinary.empty() &&
- !this->GetGlobalGenerator()->GetCMakeInstance()->GetIsInTryCompile())
+ if (!clDepsBinary.empty() && !mf->GetIsSourceFileTryCompile())
{
clShowPrefix = mf->GetSafeDefinition("CMAKE_CL_SHOWINCLUDE_PREFIX");
clBinary = mf->GetDefinition("CMAKE_C_COMPILER") ?