From a7f30c02582e80dd0ac0f40b0560923e97413ab7 Mon Sep 17 00:00:00 2001 From: RensDofferhoff <20978635+RensDofferhoff@users.noreply.github.com> Date: Fri, 23 Feb 2024 06:59:46 +0100 Subject: [PATCH] add some linux compile definitions to QMLcomponents --- QMLComponents/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/QMLComponents/CMakeLists.txt b/QMLComponents/CMakeLists.txt index 9c8291f5ba..7b21d9bde2 100644 --- a/QMLComponents/CMakeLists.txt +++ b/QMLComponents/CMakeLists.txt @@ -10,6 +10,12 @@ add_library(QMLComponents ${SOURCE_FILES} ${HEADER_FILES}) if(LINUX) target_link_libraries(QMLComponents PUBLIC ${_LIB_RT}) target_link_options(QMLComponents PUBLIC -lrt) + if(LINUX_LOCAL_BUILD) + target_compile_definitions(QMLComponents PUBLIC LINUX_LOCAL_BUILD) + endif() + if(FLATPAK_USED) + target_compile_definitions(QMLComponents PUBLIC FLATPAK_USED) + endif() endif() configure_file(${CMAKE_CURRENT_LIST_DIR}/utilities/appdirs.h.in