diff options
author | Taylor Holberton <taylorcholberton@gmail.com> | 2014-05-25 04:38:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-05-27 14:42:10 (GMT) |
commit | 58f7baab146cda9e11976d8362b8476d8ee5f264 (patch) | |
tree | b409d417e12af64242c7788e2efe64514d18b9f4 /Modules/FindFreetype.cmake | |
parent | 444f88014624b369f356d27c228a4ad98656e7f4 (diff) | |
download | CMake-58f7baab146cda9e11976d8362b8476d8ee5f264.zip CMake-58f7baab146cda9e11976d8362b8476d8ee5f264.tar.gz CMake-58f7baab146cda9e11976d8362b8476d8ee5f264.tar.bz2 |
FindFreetype: Indent with 2 spaces instead of 4
This is more consistent with style elsewhere.
Diffstat (limited to 'Modules/FindFreetype.cmake')
-rw-r--r-- | Modules/FindFreetype.cmake | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Modules/FindFreetype.cmake b/Modules/FindFreetype.cmake index 8e48b65..7d46d15 100644 --- a/Modules/FindFreetype.cmake +++ b/Modules/FindFreetype.cmake @@ -124,23 +124,23 @@ elseif(EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h") endif() if(FREETYPE_INCLUDE_DIR_freetype2 AND FREETYPE_H) - file(STRINGS "${FREETYPE_H}" freetype_version_str - REGEX "^#[\t ]*define[\t ]+FREETYPE_(MAJOR|MINOR|PATCH)[\t ]+[0-9]+$") + file(STRINGS "${FREETYPE_H}" freetype_version_str + REGEX "^#[\t ]*define[\t ]+FREETYPE_(MAJOR|MINOR|PATCH)[\t ]+[0-9]+$") - unset(FREETYPE_VERSION_STRING) - foreach(VPART MAJOR MINOR PATCH) - foreach(VLINE ${freetype_version_str}) - if(VLINE MATCHES "^#[\t ]*define[\t ]+FREETYPE_${VPART}[\t ]+([0-9]+)$") - set(FREETYPE_VERSION_PART "${CMAKE_MATCH_1}") - if(FREETYPE_VERSION_STRING) - set(FREETYPE_VERSION_STRING "${FREETYPE_VERSION_STRING}.${FREETYPE_VERSION_PART}") - else() - set(FREETYPE_VERSION_STRING "${FREETYPE_VERSION_PART}") - endif() - unset(FREETYPE_VERSION_PART) - endif() - endforeach() + unset(FREETYPE_VERSION_STRING) + foreach(VPART MAJOR MINOR PATCH) + foreach(VLINE ${freetype_version_str}) + if(VLINE MATCHES "^#[\t ]*define[\t ]+FREETYPE_${VPART}[\t ]+([0-9]+)$") + set(FREETYPE_VERSION_PART "${CMAKE_MATCH_1}") + if(FREETYPE_VERSION_STRING) + set(FREETYPE_VERSION_STRING "${FREETYPE_VERSION_STRING}.${FREETYPE_VERSION_PART}") + else() + set(FREETYPE_VERSION_STRING "${FREETYPE_VERSION_PART}") + endif() + unset(FREETYPE_VERSION_PART) + endif() endforeach() + endforeach() endif() |