[cmake-commits] andy committed cmTryCompileCommand.cxx 1.58 1.59
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Mar 2 11:33:40 EST 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv11256/Source
Modified Files:
cmTryCompileCommand.cxx
Log Message:
BUG: Propagate platform settings such as CMAKE_OSX_ARCHITECTURES to the try compile
Index: cmTryCompileCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmTryCompileCommand.cxx,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- cmTryCompileCommand.cxx 3 Oct 2006 17:22:30 -0000 1.58
+++ cmTryCompileCommand.cxx 2 Mar 2007 16:33:37 -0000 1.59
@@ -204,6 +204,11 @@
}
fprintf(fout, ")\n");
}
+ const char* platformOptions = mf->GetDefinition("CMAKE_TRY_COMPILE_PLATFORM_OPTIONS");
+ if ( platformOptions )
+ {
+ fprintf(fout, "%s\n", platformOptions);
+ }
fprintf(fout, "ADD_EXECUTABLE(cmTryCompileExec \"%s\")\n",source.c_str());
fprintf(fout,
More information about the Cmake-commits
mailing list