[cmake-commits] alex committed CMakeTestCCompiler.cmake 1.20 1.20.4.1

cmake-commits at cmake.org cmake-commits at cmake.org
Tue May 1 16:37:32 EDT 2007


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv23114

Modified Files:
      Tag: CMake-CrossCompileBasic
	CMakeTestCCompiler.cmake 
Log Message:

BUG: don't use stdio in the test for a simple executable, for some embedded
targets/toolchains/platforms this might already be too much

Alex


Index: CMakeTestCCompiler.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeTestCCompiler.cmake,v
retrieving revision 1.20
retrieving revision 1.20.4.1
diff -u -d -r1.20 -r1.20.4.1
--- CMakeTestCCompiler.cmake	26 Jul 2006 18:10:14 -0000	1.20
+++ CMakeTestCCompiler.cmake	1 May 2007 20:37:30 -0000	1.20.4.1
@@ -10,7 +10,6 @@
     "#ifdef __cplusplus\n"
     "# error \"The CMAKE_C_COMPILER is set to a C++ compiler\"\n"
     "#endif\n"
-    "#include <stdio.h>\n"
     "#if defined(__CLASSIC_C__)\n"
     "int main(argc, argv)\n"
     "  int argc;\n"
@@ -18,7 +17,7 @@
     "#else\n"
     "int main(int argc, char* argv[])\n"
     "#endif\n"
-    "{ printf(\"%s\\n\", argv[0]); return argc-1;}\n")
+    "{ return argc-1;}\n")
   TRY_COMPILE(CMAKE_C_COMPILER_WORKS ${CMAKE_BINARY_DIR} 
     ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCCompiler.c
     OUTPUT_VARIABLE OUTPUT) 



More information about the Cmake-commits mailing list