summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake16
1 files changed, 6 insertions, 10 deletions
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)