Browse Source

ENH: TryCompile should produce a verbose makefile.

Brad King 23 years ago
parent
commit
a45217f2a2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmTryCompileCommand.cxx

+ 1 - 0
Source/cmTryCompileCommand.cxx

@@ -153,6 +153,7 @@ int cmTryCompileCommand::CoreTryCompileCode(
       return -1;
       }
 
+    fprintf(fout, "SET(CMAKE_VERBOSE_MAKEFILE 1)\n");
     fprintf(fout, "SET(CMAKE_C_FLAGS \"${CMAKE_C_FLAGS} ${COMPILE_DEFINITIONS}\")\n");
     fprintf(fout, "SET(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} ${COMPILE_DEFINITIONS}\")\n");
     fprintf(fout, "INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES})\n");