From 801a9fd21e6c8870c9f216454b8a4ea15047c5db Mon Sep 17 00:00:00 2001 From: Brad King <brad.king@kitware.com> Date: Wed, 21 Sep 2005 14:15:14 -0400 Subject: [PATCH] ENH: Updated to use modern FILE command for writing to output logs instead of WRITE_FILE. --- kwsysPlatformCxxTests.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kwsysPlatformCxxTests.cmake b/kwsysPlatformCxxTests.cmake index 0bd8b62..6da82d6 100644 --- a/kwsysPlatformCxxTests.cmake +++ b/kwsysPlatformCxxTests.cmake @@ -7,11 +7,11 @@ MACRO(KWSYS_PLATFORM_CXX_TEST var description invert) COMPILE_DEFINITIONS -DTEST_${var} ${KWSYS_PLATFORM_CXX_TEST_DEFINES} OUTPUT_VARIABLE OUTPUT) IF(${var}_COMPILED) - WRITE_FILE(${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CMakeOutput.log - "${description} compiled with the following output:\n${OUTPUT}\n\n" APPEND) + FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CMakeOutput.log + "${description} compiled with the following output:\n${OUTPUT}\n\n") ELSE(${var}_COMPILED) - WRITE_FILE(${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CMakeError.log - "${description} failed to compile with the following output:\n${OUTPUT}\n\n" APPEND) + FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CMakeError.log + "${description} failed to compile with the following output:\n${OUTPUT}\n\n") ENDIF(${var}_COMPILED) IF(${invert} MATCHES INVERT) IF(${var}_COMPILED) -- GitLab