aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2024-05-19 09:41:46 +1000
committerfuzzard <fuzzard@kodi.tv>2024-06-22 13:17:13 +1000
commit6f330811844b480d413ddb4e3e987ae5418bf404 (patch)
treefa11086c5c418094fc498c5b459873bc2042f3d5 /cmake
parentb08a6e8bb05b9b10161ae6d3200f8d3ed827eebf (diff)
[cmake][modules] FindFmt fix IMPORTED_CONFIGURATIONS list
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindFmt.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/modules/FindFmt.cmake b/cmake/modules/FindFmt.cmake
index a96e911717..475238ec82 100644
--- a/cmake/modules/FindFmt.cmake
+++ b/cmake/modules/FindFmt.cmake
@@ -110,8 +110,9 @@ if(NOT TARGET ${APP_NAME_LC}::${CMAKE_FIND_PACKAGE_NAME})
endif()
if(FMT_LIBRARY_DEBUG)
set_target_properties(${APP_NAME_LC}::${CMAKE_FIND_PACKAGE_NAME} PROPERTIES
- IMPORTED_CONFIGURATIONS DEBUG
IMPORTED_LOCATION_DEBUG "${FMT_LIBRARY_DEBUG}")
+ set_property(TARGET ${APP_NAME_LC}::${CMAKE_FIND_PACKAGE_NAME} APPEND PROPERTY
+ IMPORTED_CONFIGURATIONS DEBUG)
endif()
set_target_properties(${APP_NAME_LC}::${CMAKE_FIND_PACKAGE_NAME} PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${FMT_INCLUDE_DIR}")