summaryrefslogtreecommitdiffstats
path: root/Source/cmCoreTryCompile.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-12-06 14:56:02 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-12-06 14:56:02 (GMT)
commit3944e268f430e6e2e9dbf837d875d609b8bf3234 (patch)
tree264d12fee6df42c1f42be943e092194d5154499a /Source/cmCoreTryCompile.cxx
parent246e9641807e817f0a6051130128d5433e1b83a6 (diff)
downloadCMake-3944e268f430e6e2e9dbf837d875d609b8bf3234.zip
CMake-3944e268f430e6e2e9dbf837d875d609b8bf3234.tar.gz
CMake-3944e268f430e6e2e9dbf837d875d609b8bf3234.tar.bz2
ENH: for try compile do not put the rules to rebuild the project with cmake inside it. This has caused infinite loops of builds in some cases, and it is just a waste of time anyway.
Diffstat (limited to 'Source/cmCoreTryCompile.cxx')
-rw-r--r--Source/cmCoreTryCompile.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index 8abd690..77aab0d 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -214,6 +214,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
}
fprintf(fout, " ${COMPILE_DEFINITIONS}\")\n");
fprintf(fout, "INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES})\n");
+ fprintf(fout, "SET(CMAKE_SUPPRESS_REGENERATION 1)\n");
fprintf(fout, "LINK_DIRECTORIES(${LINK_DIRECTORIES})\n");
// handle any compile flags we need to pass on
if (compileFlags.size())