From d55ad8b92dea5e6fc65c99128b2d1dbe92a58403 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Thu, 11 Jul 2019 19:32:38 +0200 Subject: Make potrace a dep, remove previous code --- CMakeScripts/DefineDependsandFlags.cmake | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'CMakeScripts/DefineDependsandFlags.cmake') diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake index 7e6aa453b..b41b18cc9 100644 --- a/CMakeScripts/DefineDependsandFlags.cmake +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -205,16 +205,12 @@ find_package(PNG REQUIRED) list(APPEND INKSCAPE_INCS_SYS ${PNG_PNG_INCLUDE_DIR}) list(APPEND INKSCAPE_LIBS ${PNG_LIBRARY}) -find_package(Potrace) -if(POTRACE_FOUND) - list(APPEND INKSCAPE_INCS_SYS ${POTRACE_INCLUDE_DIRS}) - list(APPEND INKSCAPE_LIBS ${POTRACE_LIBRARIES}) - set(HAVE_POTRACE ON) - add_definitions(-DHAVE_POTRACE) -else(POTRACE_FOUND) - set(HAVE_POTRACE OFF) - message(STATUS "Could not locate the Potrace library headers: the Trace Bitmap and Paintbucket tools will be disabled") -endif() +find_package(Potrace REQUIRED) +list(APPEND INKSCAPE_INCS_SYS ${POTRACE_INCLUDE_DIRS}) +list(APPEND INKSCAPE_LIBS ${POTRACE_LIBRARIES}) +set(HAVE_POTRACE ON) +add_definitions(-DHAVE_POTRACE) + if(WITH_DBUS) pkg_check_modules(DBUS dbus-1 dbus-glib-1) -- cgit v1.2.3