From 3944e268f430e6e2e9dbf837d875d609b8bf3234 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 6 Dec 2007 09:56:02 -0500 Subject: 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. --- Source/cmCoreTryCompile.cxx | 1 + 1 file changed, 1 insertion(+) 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 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()) -- cgit v0.12