[cmake-commits] hoffman committed cmCoreTryCompile.cxx 1.4 1.5
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Dec 6 09:56:04 EST 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv22936
Modified Files:
cmCoreTryCompile.cxx
Log Message:
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.
Index: cmCoreTryCompile.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmCoreTryCompile.cxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cmCoreTryCompile.cxx 27 Jul 2007 14:55:24 -0000 1.4
+++ cmCoreTryCompile.cxx 6 Dec 2007 14:56:02 -0000 1.5
@@ -214,6 +214,7 @@
}
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())
More information about the Cmake-commits
mailing list