diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-07-11 17:32:38 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-08-21 15:16:54 +0000 |
| commit | d55ad8b92dea5e6fc65c99128b2d1dbe92a58403 (patch) | |
| tree | 4a38ab6eb225f97721a017d21d9ae46a1f7a25fb /CMakeScripts/DefineDependsandFlags.cmake | |
| parent | Fix build (diff) | |
| download | inkscape-d55ad8b92dea5e6fc65c99128b2d1dbe92a58403.tar.gz inkscape-d55ad8b92dea5e6fc65c99128b2d1dbe92a58403.zip | |
Make potrace a dep, remove previous code
Diffstat (limited to '')
| -rw-r--r-- | CMakeScripts/DefineDependsandFlags.cmake | 16 |
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) |
