From ba96f7ddc261c63b8814777d05c0356124b49514 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sat, 23 Jul 2022 23:48:21 +0200 Subject: [PATCH] CMake: build libcalamares with an internal name for KPMcore --- src/libcalamares/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libcalamares/CMakeLists.txt b/src/libcalamares/CMakeLists.txt index e2c9805ad..86e03f071 100644 --- a/src/libcalamares/CMakeLists.txt +++ b/src/libcalamares/CMakeLists.txt @@ -139,8 +139,10 @@ if(KPMcore_FOUND) partition/PartitionQuery.cpp ) endif() -# Always, since this also handles the no-KPMcore case -target_link_libraries(calamares PRIVATE calamares::kpmcore) +# Always, since this also handles the no-KPMcore case; we don't +# call it calamares::kpmcore because that name exists only +# when KPMcore is actually found. +target_link_libraries(calamares PRIVATE calapmcore) ### LIBRARY #