diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
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) |