STYLE: remove debug output, fix indentation

the tests run again successfully, but since CheckTypeSize will switch to a
TRY_COMPILE soon I will look at it again after this change

Alex
This commit is contained in:
Alexander Neundorf 2007-05-24 16:03:39 -04:00
parent 504ea6df4e
commit c9aecb91cc
3 changed files with 57 additions and 58 deletions

View File

@ -41,9 +41,14 @@
/* sdcc, the small devices C compiler for embedded systems, /* sdcc, the small devices C compiler for embedded systems,
http://sdcc.sourceforge.net http://sdcc.sourceforge.net
Beside this id not supported yet by CMake */ Beside this id not supported yet by CMake
Unfortunately this doesn't work because SDCC (and other embedded compilers
too) produce not binary files, but e.g. Intel hex files by default.
This also means it has a different suffix (.ihx) so the file isn't even
found. */
/*
#elif defined(SDCC) #elif defined(SDCC)
# define COMPILER_ID "SDCC" # define COMPILER_ID "SDCC" */
#elif defined(_COMPILER_VERSION) #elif defined(_COMPILER_VERSION)
# define COMPILER_ID "MIPSpro" # define COMPILER_ID "MIPSpro"

View File

@ -55,8 +55,6 @@ MACRO(CHECK_TYPE_SIZE TYPE VARIABLE)
"${CHECK_TYPE_SIZE_ADD_LIBRARIES}" "${CHECK_TYPE_SIZE_ADD_LIBRARIES}"
"${CHECK_TYPE_SIZE_ADD_INCLUDES}" "${CHECK_TYPE_SIZE_ADD_INCLUDES}"
OUTPUT_VARIABLE OUTPUT) OUTPUT_VARIABLE OUTPUT)
message(STATUS "debug: COMPILE: ${HAVE_${VARIABLE}} RUN: ${${VARIABLE}} OUT: ${OUTPUT}")
IF(HAVE_${VARIABLE}) IF(HAVE_${VARIABLE})
MESSAGE(STATUS "Check size of ${TYPE} - done") MESSAGE(STATUS "Check size of ${TYPE} - done")
FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log

View File

@ -96,10 +96,6 @@ bool cmTryRunCommand::InitialPass(std::vector<std::string> const& argv)
bool worked = cmSystemTools::RunSingleCommand(finalCommand.c_str(), bool worked = cmSystemTools::RunSingleCommand(finalCommand.c_str(),
&output, &retVal, &output, &retVal,
0, false, timeout); 0, false, timeout);
printf("worked: %d output: -%s-\n", worked?1:0, output.c_str());
if(outputVariable.size()) if(outputVariable.size())
{ {
// if the TryCompileCore saved output in this outputVariable then // if the TryCompileCore saved output in this outputVariable then