FindFreeType: insert Freetype's location to the start

This should help static builds satisfy dependencies by listing
transitive libraries after freetype's.
This commit is contained in:
Ben Boeckel
2023-10-27 22:24:36 -04:00
parent 1cfc708eea
commit 2cf2d4f7df

View File

@@ -140,7 +140,7 @@ if (freetype_FOUND)
unset(_Freetype_location_release)
unset(_Freetype_location_debug)
endif ()
list(APPEND FREETYPE_LIBRARIES
list(INSERT FREETYPE_LIBRARIES 0
"${_Freetype_location}")
unset(_Freetype_location)
set(Freetype_FOUND 1)