From 0d131af81a9a5fe648865cfda16c3d1612583a6e Mon Sep 17 00:00:00 2001 From: Paul-Louis Ageneau Date: Thu, 28 Nov 2024 10:38:05 +0100 Subject: [PATCH] Merge pull request #1297 from metalMajor/bugfix/findLibJuice libjuice: cmake find does not use correct names on imported target --- cmake/Modules/FindLibJuice.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Modules/FindLibJuice.cmake b/cmake/Modules/FindLibJuice.cmake index 2a01c4846..a255b89b3 100644 --- a/cmake/Modules/FindLibJuice.cmake +++ b/cmake/Modules/FindLibJuice.cmake @@ -9,8 +9,8 @@ if (NOT TARGET LibJuice::LibJuice) add_library(LibJuice::LibJuice UNKNOWN IMPORTED) set_target_properties(LibJuice::LibJuice PROPERTIES IMPORTED_LOCATION "${JUICE_LIBRARY}" - INTERFACE_INCLUDE_DIRECTORIES "${JUICE_INCLUDE_DIRS}" - INTERFACE_LINK_LIBRARIES "${JUICE_LIBRARIES}" + INTERFACE_INCLUDE_DIRECTORIES "${JUICE_INCLUDE_DIR}" + INTERFACE_LINK_LIBRARIES "${JUICE_LIBRARY}" IMPORTED_LINK_INTERFACE_LANGUAGES "C") endif () endif ()