diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-12-13 18:12:16 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-12-13 18:12:45 (GMT) |
commit | a575bebf0d28cb00481da66f0aad306262b69d13 (patch) | |
tree | 9e2c62d48e88400bd85e69b8b9ab0eca9a4245d4 /Modules | |
parent | d892dedf2253127c85a443330630c6a9704c5e28 (diff) | |
download | CMake-a575bebf0d28cb00481da66f0aad306262b69d13.zip CMake-a575bebf0d28cb00481da66f0aad306262b69d13.tar.gz CMake-a575bebf0d28cb00481da66f0aad306262b69d13.tar.bz2 |
FindFreetype: also consider RelWithDebInfo-built libraries
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindFreetype.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/FindFreetype.cmake b/Modules/FindFreetype.cmake index 32b2e06..a24fd40 100644 --- a/Modules/FindFreetype.cmake +++ b/Modules/FindFreetype.cmake @@ -110,6 +110,9 @@ if (freetype_FOUND) get_property(_Freetype_location TARGET freetype PROPERTY IMPORTED_IMPLIB) if (NOT _Freetype_location) get_property(_Freetype_location_release TARGET freetype PROPERTY IMPORTED_IMPLIB_RELEASE) + if (NOT _Freetype_location_release) + get_property(_Freetype_location_release TARGET freetype PROPERTY IMPORTED_IMPLIB_RELWITHDEBINFO) + endif () get_property(_Freetype_location_debug TARGET freetype PROPERTY IMPORTED_IMPLIB_DEBUG) if (_Freetype_location_release AND _Freetype_location_debug) set(_Freetype_location @@ -121,6 +124,9 @@ if (freetype_FOUND) set(_Freetype_location "${_Freetype_location_debug}") else () get_property(_Freetype_location_release TARGET freetype PROPERTY LOCATION_RELEASE) + if (NOT _Freetype_location_release) + get_property(_Freetype_location_release TARGET freetype PROPERTY LOCATION_RELWITHDEBINFO) + endif () get_property(_Freetype_location_debug TARGET freetype PROPERTY LOCATION_DEBUG) if (_Freetype_location_release AND _Freetype_location_debug) set(_Freetype_location |