File 0002-CMakeLists.txt-do-not-detect-ghostscript-at-compile-.patch of Package k2pdfopt

From c6a32d975be6134d379740bdc9a662bf5a5a2a3d Mon Sep 17 00:00:00 2001
From: yangfl <yangfl@users.noreply.github.com>
Date: Mon, 7 Jan 2019 16:48:40 +0800
Subject: [PATCH 02/11] CMakeLists.txt: do not detect ghostscript at compile
 time

---
 CMakeLists.txt | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9ad17937922a..8ef79c6ccbbb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,17 +59,7 @@ if(JASPER_FOUND)
   set(HAVE_JASPER_LIB 1)
 endif(JASPER_FOUND)
 
-# paths from willuslib/wgs.c
-find_program(GHOSTSCRIPT_EXECUTABLE gs
-#  PATHS /usr/bin /usr/share/gs /usr/local/gs /opt/gs 
-#    /usr/share/gs* /usr/local/gs* /opt/gs*
-)
-if(GHOSTSCRIPT_EXECUTABLE)
-  set(HAVE_GHOSTSCRIPT 1)
-  message(STATUS "Found ghostscript executable")
-else()
-  message(STATUS "Could NOT find ghostscript executable")
-endif(GHOSTSCRIPT_EXECUTABLE)
+set(HAVE_GHOSTSCRIPT 1)
 
 # willus.h
 # HAVE_GSL_LIB
-- 
2.43.0

openSUSE Build Service is sponsored by