summaryrefslogtreecommitdiffstats
path: root/Modules/SystemInformation.cmake
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2012-08-13 17:42:58 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-13 18:18:39 (GMT)
commit7bbaa4283de26864b2e55e819db0884771585467 (patch)
treeecb748dbe41a13d8bdea77acd0049cde999d933e /Modules/SystemInformation.cmake
parentbe9db98946b7918f279812fd0616abb650eebed0 (diff)
downloadCMake-7bbaa4283de26864b2e55e819db0884771585467.zip
CMake-7bbaa4283de26864b2e55e819db0884771585467.tar.gz
CMake-7bbaa4283de26864b2e55e819db0884771585467.tar.bz2
Remove trailing whitespace from most CMake and C/C++ code
Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
Diffstat (limited to 'Modules/SystemInformation.cmake')
-rw-r--r--Modules/SystemInformation.cmake32
1 files changed, 16 insertions, 16 deletions
diff --git a/Modules/SystemInformation.cmake b/Modules/SystemInformation.cmake
index d4f2233..443c7aa 100644
--- a/Modules/SystemInformation.cmake
+++ b/Modules/SystemInformation.cmake
@@ -23,33 +23,33 @@ SET_DIRECTORY_PROPERTIES(PROPERTIES INCLUDE_DIRECTORIES "${DumpInformation_BINAR
CONFIGURE_FILE("${CMAKE_ROOT}/Modules/SystemInformation.in" "${RESULT_FILE}")
-FILE(APPEND "${RESULT_FILE}"
+FILE(APPEND "${RESULT_FILE}"
"\n=================================================================\n")
-FILE(APPEND "${RESULT_FILE}"
+FILE(APPEND "${RESULT_FILE}"
"=== VARIABLES\n")
-FILE(APPEND "${RESULT_FILE}"
+FILE(APPEND "${RESULT_FILE}"
"=================================================================\n")
GET_CMAKE_PROPERTY(res VARIABLES)
FOREACH(var ${res})
FILE(APPEND "${RESULT_FILE}" "${var} \"${${var}}\"\n")
ENDFOREACH(var ${res})
-FILE(APPEND "${RESULT_FILE}"
+FILE(APPEND "${RESULT_FILE}"
"\n=================================================================\n")
-FILE(APPEND "${RESULT_FILE}"
+FILE(APPEND "${RESULT_FILE}"
"=== COMMANDS\n")
-FILE(APPEND "${RESULT_FILE}"
+FILE(APPEND "${RESULT_FILE}"
"=================================================================\n")
GET_CMAKE_PROPERTY(res COMMANDS)
FOREACH(var ${res})
FILE(APPEND "${RESULT_FILE}" "${var}\n")
ENDFOREACH(var ${res})
-FILE(APPEND "${RESULT_FILE}"
+FILE(APPEND "${RESULT_FILE}"
"\n=================================================================\n")
-FILE(APPEND "${RESULT_FILE}"
+FILE(APPEND "${RESULT_FILE}"
"=== MACROS\n")
-FILE(APPEND "${RESULT_FILE}"
+FILE(APPEND "${RESULT_FILE}"
"=================================================================\n")
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/AllMacros.txt "")
GET_CMAKE_PROPERTY(res MACROS)
@@ -57,11 +57,11 @@ FOREACH(var ${res})
FILE(APPEND "${RESULT_FILE}" "${var}\n")
ENDFOREACH(var ${res})
-FILE(APPEND "${RESULT_FILE}"
+FILE(APPEND "${RESULT_FILE}"
"\n=================================================================\n")
-FILE(APPEND "${RESULT_FILE}"
+FILE(APPEND "${RESULT_FILE}"
"=== OTHER\n")
-FILE(APPEND "${RESULT_FILE}"
+FILE(APPEND "${RESULT_FILE}"
"=================================================================\n")
GET_DIRECTORY_PROPERTY(res INCLUDE_DIRECTORIES)
FOREACH(var ${res})
@@ -80,13 +80,13 @@ FILE(APPEND "${RESULT_FILE}" "INCLUDE_REGULAR_EXPRESSION: ${res}\n")
# binary tree
MACRO(DUMP_FILE THE_FILE)
IF (EXISTS "${THE_FILE}")
- FILE(APPEND "${RESULT_FILE}"
+ FILE(APPEND "${RESULT_FILE}"
"\n=================================================================\n")
- FILE(APPEND "${RESULT_FILE}"
+ FILE(APPEND "${RESULT_FILE}"
"=== ${THE_FILE}\n")
- FILE(APPEND "${RESULT_FILE}"
+ FILE(APPEND "${RESULT_FILE}"
"=================================================================\n")
-
+
FILE(READ "${THE_FILE}" FILE_CONTENTS LIMIT 50000)
FILE(APPEND "${RESULT_FILE}" "${FILE_CONTENTS}")
ENDIF (EXISTS "${THE_FILE}")