summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2012-09-04 23:44:11 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2012-09-05 12:38:49 (GMT)
commit7b2bf28e183b5eacc22fe3030f0439853746f0bd (patch)
tree24420af73ff7396981a950a7553aa90bd3d77b48 /Source/cmNinjaTargetGenerator.cxx
parent508ed6940b447c2fb6b5fe4f036138ce57ab3c4c (diff)
downloadCMake-7b2bf28e183b5eacc22fe3030f0439853746f0bd.zip
CMake-7b2bf28e183b5eacc22fe3030f0439853746f0bd.tar.gz
CMake-7b2bf28e183b5eacc22fe3030f0439853746f0bd.tar.bz2
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 918f582..4cc23ca 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") ?