diff options
author | Kai Pastor <dg0yt@darc.de> | 2024-04-10 01:29:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-04-10 16:12:05 (GMT) |
commit | 4ab860c4c7cd53844b9faa02e20f69633a974284 (patch) | |
tree | f57cca1afd04389d4d72e698747b2f8a68e37911 | |
parent | 614ebb73752bf084eda313e222a12f5302a1121c (diff) | |
download | CMake-4ab860c4c7cd53844b9faa02e20f69633a974284.zip CMake-4ab860c4c7cd53844b9faa02e20f69633a974284.tar.gz CMake-4ab860c4c7cd53844b9faa02e20f69633a974284.tar.bz2 |
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.
-rw-r--r-- | Modules/FindJasper.cmake | 4 |
1 files 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}") |