FindFreetype: Indent with 2 spaces instead of 4

This is more consistent with style elsewhere.
This commit is contained in:
Taylor Holberton 2014-05-24 21:38:43 -07:00 committed by Brad King
parent 444f880146
commit 58f7baab14
1 changed files with 15 additions and 15 deletions

View File

@ -124,23 +124,23 @@ elseif(EXISTS "${FREETYPE_INCLUDE_DIR_freetype2}/freetype.h")
endif() endif()
if(FREETYPE_INCLUDE_DIR_freetype2 AND FREETYPE_H) if(FREETYPE_INCLUDE_DIR_freetype2 AND FREETYPE_H)
file(STRINGS "${FREETYPE_H}" freetype_version_str file(STRINGS "${FREETYPE_H}" freetype_version_str
REGEX "^#[\t ]*define[\t ]+FREETYPE_(MAJOR|MINOR|PATCH)[\t ]+[0-9]+$") REGEX "^#[\t ]*define[\t ]+FREETYPE_(MAJOR|MINOR|PATCH)[\t ]+[0-9]+$")
unset(FREETYPE_VERSION_STRING) unset(FREETYPE_VERSION_STRING)
foreach(VPART MAJOR MINOR PATCH) foreach(VPART MAJOR MINOR PATCH)
foreach(VLINE ${freetype_version_str}) foreach(VLINE ${freetype_version_str})
if(VLINE MATCHES "^#[\t ]*define[\t ]+FREETYPE_${VPART}[\t ]+([0-9]+)$") if(VLINE MATCHES "^#[\t ]*define[\t ]+FREETYPE_${VPART}[\t ]+([0-9]+)$")
set(FREETYPE_VERSION_PART "${CMAKE_MATCH_1}") set(FREETYPE_VERSION_PART "${CMAKE_MATCH_1}")
if(FREETYPE_VERSION_STRING) if(FREETYPE_VERSION_STRING)
set(FREETYPE_VERSION_STRING "${FREETYPE_VERSION_STRING}.${FREETYPE_VERSION_PART}") set(FREETYPE_VERSION_STRING "${FREETYPE_VERSION_STRING}.${FREETYPE_VERSION_PART}")
else() else()
set(FREETYPE_VERSION_STRING "${FREETYPE_VERSION_PART}") set(FREETYPE_VERSION_STRING "${FREETYPE_VERSION_PART}")
endif() endif()
unset(FREETYPE_VERSION_PART) unset(FREETYPE_VERSION_PART)
endif() endif()
endforeach()
endforeach() endforeach()
endforeach()
endif() endif()