From 9ce08beeadbabe115338ebaff654953a0a446e46 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 7 Oct 2020 01:15:12 +0200 Subject: [PATCH] [libcalamares] Fix build - The API definitions are just the symbols to define; these are variously added through add_definitions() (needs -D) or target_add_definitions() (doesn't). --- src/libcalamares/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libcalamares/CMakeLists.txt b/src/libcalamares/CMakeLists.txt index 1ddcfb5a8..b1e40c3ae 100644 --- a/src/libcalamares/CMakeLists.txt +++ b/src/libcalamares/CMakeLists.txt @@ -120,7 +120,9 @@ if ( KPMcore_FOUND ) find_package( Qt5 REQUIRED DBus ) # Needed for KPMCore find_package( KF5 REQUIRED I18n WidgetsAddons ) # Needed for KPMCore - add_definitions( ${KPMcore_API_DEFINITIONS} ) + foreach ( d ${KPMcore_API_DEFINITIONS} ) + add_definitions( -D${d} ) + endforeach() include_directories( ${KPMCORE_INCLUDE_DIR} ) list( APPEND libSources partition/FileSystem.cpp