From 20f5609a6c1c9717ffe04d51f764f03ec95ceaa1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 15 Jul 2017 21:51:42 -0700 Subject: Mac build: correctly deal with no printing Including working around a weird hack to install the Grantlee plugins. Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 2 +- scripts/build.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ed2e08b7..beb86adbe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -397,7 +397,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") install(FILES ${QTTRANSLATIONS} DESTINATION ${RESOURCEDIR}/translations) install(FILES ${CMAKE_SOURCE_DIR}/gpl-2.0.txt DESTINATION ${RESOURCEDIR}) # this is a HACK - if(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "DesktopExecutable") + if((${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "DesktopExecutable") AND (NOT NO_PRINTING)) install(DIRECTORY ${Grantlee5_DIR}/../../grantlee DESTINATION ${PLUGINDIR}) endif() # this is a hack - but I don't know how else to find the macdeployqt program if it's not in the PATH diff --git a/scripts/build.sh b/scripts/build.sh index a2edbd8ad..72d8542b3 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -403,6 +403,8 @@ if [ "$BUILDGRANTLEE" = "1" ] ; then $SRC/grantlee make -j4 make install +else + PRINTING="-DNO_PRINTING=ON" fi -- cgit v1.2.3-70-g09d2