summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-09-27 17:44:58 +0000
committerCampbell Barton <ideasman42@gmail.com>2011-09-27 17:44:58 +0000
commit41a60d0f4d77fbde96f6e8196af58718995da78f (patch)
tree1b404a1f6419f0aef627f961a7be2c44e651dace /CMakeScripts
parentremove stray comma causing build warnings. (diff)
downloadinkscape-41a60d0f4d77fbde96f6e8196af58718995da78f.tar.gz
inkscape-41a60d0f4d77fbde96f6e8196af58718995da78f.zip
fix for building when WITH_LIBWPG couldn't be found.
(bzr r10651)
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
index cf1f59996..fff82a174 100644
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -85,8 +85,9 @@ if(WITH_LIBWPG)
list(APPEND INKSCAPE_INCS_SYS ${LIBWPG_INCLUDE_DIRS})
list(APPEND INKSCAPE_LIBS ${LIBWPG_LIBRARIES})
add_definitions(${LIBWPG_DEFINITIONS})
+ else()
+ set(WITH_LIBWPG OFF)
endif()
- set(WITH_LIBWPG ${LIBWPG_FOUND})
endif()
find_package(PNG REQUIRED)