diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2038ec3..b5af5b6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -206,6 +206,7 @@ IF (WIN32 OR APPLE)
     SET(WEBKIT_LDFLAGS ${WEBKIT1_LDFLAGS})
     SET(WEBKIT_LIBRARIES ${WEBKIT1_LIBRARIES})
 ELSE (WIN32 OR APPLE)
+IF (WITH_GNUCASH)
   GNC_PKG_CHECK_MODULES (WEBKIT2_4 webkit2gtk-4.0)
   IF (NOT WEBKIT2_4_FOUND)
     GNC_PKG_CHECK_MODULES (WEBKIT2_3 REQUIRED webkit2gtk-3.0)
@@ -221,6 +222,7 @@ ELSE (WIN32 OR APPLE)
     SET(WEBKIT_LDFLAGS ${WEBKIT2_4_LDFLAGS})
     SET(WEBKIT_LIBRARIES ${WEBKIT2_4_LIBRARIES})
   ENDIF (NOT WEBKIT2_4_FOUND)
+ENDIF (WITH_GNUCASH)
 ENDIF (WIN32 OR APPLE)
 
 IF (WITH_GNUCASH)
@@ -752,7 +754,6 @@ SET(SCHEME_INSTALLED_CACHE_DIR ${PKGLIBDIR}/scm/ccache/${GUILE_EFFECTIVE_VERSION
 # The subdirectories
 ADD_SUBDIRECTORY (borrowed)
 ADD_SUBDIRECTORY (data)
-ADD_SUBDIRECTORY (doc)
 ADD_SUBDIRECTORY (po)
 ADD_SUBDIRECTORY (common)
 ADD_SUBDIRECTORY (libgnucash)
diff --git a/libgnucash/scm/CMakeLists.txt b/libgnucash/scm/CMakeLists.txt
index 3f18ccc..487ff7b 100644
--- a/libgnucash/scm/CMakeLists.txt
+++ b/libgnucash/scm/CMakeLists.txt
@@ -12,7 +12,7 @@ GNC_ADD_SCHEME_TARGETS(scm-scm
 GNC_ADD_SCHEME_TARGETS(price-quotes
   price-quotes.scm
   gnucash
-  "scm-scm;scm-gnome-utils;scm-app-utils"
+  "scm-scm;scm-app-utils"
   FALSE)
 
 
