FindFreetype: Indent with 2 spaces instead of 4
This is more consistent with style elsewhere.
This commit is contained in:
parent
444f880146
commit
58f7baab14
|
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue