From 41a60d0f4d77fbde96f6e8196af58718995da78f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 28 Sep 2011 03:44:58 +1000 Subject: fix for building when WITH_LIBWPG couldn't be found. (bzr r10651) --- CMakeScripts/DefineDependsandFlags.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CMakeScripts') 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) -- cgit v1.2.3