Skip to content
Snippets Groups Projects
Commit 908928b4 authored by Adriaan de Groot's avatar Adriaan de Groot
Browse files

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).
parent 97cbebc0
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment