mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
FindFreeType: handle config-specific LOCATION settings as well
`vcpkg` builds release and debug variants on platforms other than Windows (which uses the `IMPLIB` properties).
This commit is contained in:
1 parent
ae9890cd36
commit
1cfc708eea
1 file changed
+13
-1
@@ -123,7 +123,19 @@ if (freetype_FOUND)
|
||||
elseif (_Freetype_location_debug)
|
||||
set(_Freetype_location "${_Freetype_location_debug}")
|
||||
else ()
|
||||
get_property(_Freetype_location TARGET freetype PROPERTY LOCATION)
|
||||
get_property(_Freetype_location_release TARGET freetype PROPERTY LOCATION_RELEASE)
|
||||
get_property(_Freetype_location_debug TARGET freetype PROPERTY LOCATION_DEBUG)
|
||||
if (_Freetype_location_release AND _Freetype_location_debug)
|
||||
set(_Freetype_location
|
||||
optimized "${_Freetype_location_release}"
|
||||
debug "${_Freetype_location_debug}")
|
||||
elseif (_Freetype_location_release)
|
||||
set(_Freetype_location "${_Freetype_location_release}")
|
||||
elseif (_Freetype_location_debug)
|
||||
set(_Freetype_location "${_Freetype_location_debug}")
|
||||
else ()
|
||||
get_property(_Freetype_location TARGET freetype PROPERTY LOCATION)
|
||||
endif ()
|
||||
endif ()
|
||||
unset(_Freetype_location_release)
|
||||
unset(_Freetype_location_debug)
|
||||
|
||||
Reference in new issue
Block a user