mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-30 18:29:37 -06:00
FindJasper: Fix importing Release and Debug configurations together
In commit 6e8754c625 (FindJasper: Add IMPORTED target, 2021-10-06,
v3.22.0-rc1~20^2) we set `IMPORTED_LOCATION` for both. Instead,
set `IMPORTED_LOCATION_{RELEASE,DEBUG}`.
Issue: #20601
Reported-by: Craig Scott <craig.scott@crascit.com>
This commit is contained in:
@@ -106,14 +106,14 @@ if(Jasper_FOUND)
|
||||
IMPORTED_CONFIGURATIONS RELEASE)
|
||||
set_target_properties(Jasper::Jasper PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C"
|
||||
IMPORTED_LOCATION "${JASPER_LIBRARY_RELEASE}")
|
||||
IMPORTED_LOCATION_RELEASE "${JASPER_LIBRARY_RELEASE}")
|
||||
endif()
|
||||
if(EXISTS "${JASPER_LIBRARY_DEBUG}")
|
||||
set_property(TARGET Jasper::Jasper APPEND PROPERTY
|
||||
IMPORTED_CONFIGURATIONS DEBUG)
|
||||
set_target_properties(Jasper::Jasper PROPERTIES
|
||||
IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C"
|
||||
IMPORTED_LOCATION "${JASPER_LIBRARY_DEBUG}")
|
||||
IMPORTED_LOCATION_DEBUG "${JASPER_LIBRARY_DEBUG}")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user