From 4ab860c4c7cd53844b9faa02e20f69633a974284 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Tue, 9 Apr 2024 21:29:49 -0400 Subject: FindJasper: Fix Jasper::Jasper IMPORTED_CONFIGURATIONS In commit 6e8754c625 (FindJasper: Add IMPORTED target, 2021-10-06, v3.22.0-rc1~20^2) this property was not set correctly. This was detected by `CMP0160` because the `IMPORTED` property is read-only. --- Modules/FindJasper.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/FindJasper.cmake b/Modules/FindJasper.cmake index 9a62669..ec2907d 100644 --- a/Modules/FindJasper.cmake +++ b/Modules/FindJasper.cmake @@ -74,14 +74,14 @@ if(JASPER_FOUND) endif() if(EXISTS "${JASPER_LIBRARY_RELEASE}") set_property(TARGET Jasper::Jasper APPEND PROPERTY - IMPORTED CONFIGURATION RELEASE) + IMPORTED_CONFIGURATIONS RELEASE) set_target_properties(Jasper::Jasper PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C" IMPORTED_LOCATION "${JASPER_LIBRARY_RELEASE}") endif() if(EXISTS "${JASPER_LIBRARY_DEBUG}") set_property(TARGET Jasper::Jasper APPEND PROPERTY - IMPORTED CONFIGURATION DEBUG) + IMPORTED_CONFIGURATIONS DEBUG) set_target_properties(Jasper::Jasper PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C" IMPORTED_LOCATION "${JASPER_LIBRARY_DEBUG}") -- cgit v0.12