summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2015-11-12 23:44:26 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2015-11-12 23:44:26 +0000
commitec3c0a24bb14d96bfcef72cdd72326fce2790eff (patch)
treeaaecbec42c37bf2c391ec340b54d3be5a32161e5 /CMakeScripts
parentUpdate cmake Potrace module to match style of others (diff)
downloadinkscape-ec3c0a24bb14d96bfcef72cdd72326fce2790eff.tar.gz
inkscape-ec3c0a24bb14d96bfcef72cdd72326fce2790eff.zip
Fix CMake build
(bzr r14449.1.6)
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake10
1 files changed, 7 insertions, 3 deletions
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
index ea0867535..3f1d06e4c 100644
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -197,9 +197,13 @@ list(APPEND INKSCAPE_INCS_SYS ${POPT_INCLUDE_DIR})
list(APPEND INKSCAPE_LIBS ${POPT_LIBRARIES})
add_definitions(${POPT_DEFINITIONS})
-find_package(Potrace REQUIRED)
-list(APPEND INKSCAPE_INCS_SYS ${POTRACE_INCLUDE_DIRS})
-list(APPEND INKSCAPE_LIBS ${POTRACE_LIBRARIES})
+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)
+endif()
if(WITH_DBUS)
find_package(DBus REQUIRED)