From 908928b41c1b20a123b548356c6ed92de1ee8886 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 19 Jul 2022 11:54:26 +0200 Subject: [PATCH] CMake: repair broken logic around finding KPMcore - the alias libraries calapmcore and calamares::kpmcore are always created; if there is no KPMcore, they handle definitions to signal that. - upstream kpmcore target is the one we should be testing to see if KPMcore itself is there (or, use KPMcore_FOUND). --- CMakeModules/KPMcoreHelper.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeModules/KPMcoreHelper.cmake b/CMakeModules/KPMcoreHelper.cmake index d0cb95239..654fa8b0d 100644 --- a/CMakeModules/KPMcoreHelper.cmake +++ b/CMakeModules/KPMcoreHelper.cmake @@ -45,7 +45,7 @@ if(NOT KPMcore_searched_for AND NOT TARGET calapmcore) add_library(calamares::kpmcore ALIAS calapmcore) else() - if(TARGET calapmcore) + if(TARGET kpmcore) message(STATUS "KPMcore has already been found") set(KPMcore_FOUND TRUE) else()