From 48adaf52971965a0e1465ea834cbe930d3c65ec4 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Sun, 11 Oct 2020 16:27:28 +0200 Subject: Set the NO_PRINTING variable properly Signed-off-by: Robert C. Helling --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index b1d61b557..e4773efca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,8 +175,10 @@ if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "DesktopExecutable") endif() list(APPEND QT_EXTRA_COMPONENTS QuickWidgets) remove_definitions(-DSUBSURFACE_MOBILE) - # I hate the double negation - if(NOT NO_PRINTING) + if(NO_PRINTING) + message(STATUS "building without printing support") + add_definitions(-DNO_PRINTING) + else() LIST(APPEND QT_EXTRA_COMPONENTS PrintSupport) # Because Qt5WebKitWidgets isn't a part of the "regular" Qt5, we can't get it the normal way find_package(Qt5WebKitWidgets REQUIRED) -- cgit v1.2.3-70-g09d2