summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-12-13 18:12:16 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-12-13 18:12:45 (GMT)
commita575bebf0d28cb00481da66f0aad306262b69d13 (patch)
tree9e2c62d48e88400bd85e69b8b9ab0eca9a4245d4 /Modules
parentd892dedf2253127c85a443330630c6a9704c5e28 (diff)
downloadCMake-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.cmake6
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