[Uml-devel] Fwd: kdesdk build problems
Jonathan Riddell
jr at jriddell.org
Thu Mar 27 15:02:33 UTC 2008
----- Forwarded message from Matthew Woehlke <mw_triad at users.sourceforge.net> -----
Date: Wed, 26 Mar 2008 17:19:11 -0500
From: Matthew Woehlke <mw_triad at users.sourceforge.net>
Reply-To: kde-devel at kde.org
To: jr at jriddell.org
Cc: kde-devel at kde.org
Subject: kdesdk build problems
umbrello uses boost, but does not search for it. Because I have an
insufficiently old version in /usr/include, this (along with
FindBoost.cmake being broken, as reported in a previous message) causes
the build to fail.
I'd like to apply this:
Index: umbrello/umbrello/CMakeLists.txt
===================================================================
--- umbrello/umbrello/CMakeLists.txt (revision 790531)
+++ umbrello/umbrello/CMakeLists.txt (working copy)
@@ -14,7 +14,7 @@
add_definitions (-DQT3_SUPPORT_WARNINGS)
-include_directories (${LIBXML2_INCLUDE_DIR} ${LIBXSLT_INCLUDE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/dialogs/)
+include_directories (${LIBXML2_INCLUDE_DIR} ${LIBXSLT_INCLUDE_DIR}
${Boost_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/)
set(libcodegenerator_SRCS
codegenerators/codegenfactory.cpp
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 790531)
+++ CMakeLists.txt (working copy)
@@ -23,6 +23,10 @@
macro_optional_find_package(LibXml2)
macro_log_feature(LIBXML2_FOUND "LibXML2" "Libraries used to develop
XML applications" "http://xmlsoft.org" FALSE "" "Required to build
Umbrello.")
+set(Boost_MINIMUM_VERSION 1.33.1)
+macro_optional_find_package(Boost)
+macro_log_feature(Boost_FOUND "libboost-dev" "Boost C++ Libraries"
"http://www.boost.org" FALSE "Required to build Umbrello.")
+
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DQT3_SUPPORT)
include_directories (${QDBUS_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
@@ -63,9 +67,9 @@
message(STATUS "remember to port scheck (check style)")
#add_subdirectory(scheck)
macro_optional_add_subdirectory(scripts)
-if(LIBXSLT_FOUND AND LIBXML2_FOUND)
+if(LIBXSLT_FOUND AND LIBXML2_FOUND AND Boost_FOUND)
macro_optional_add_subdirectory(umbrello)
-endif(LIBXSLT_FOUND AND LIBXML2_FOUND)
+endif(LIBXSLT_FOUND AND LIBXML2_FOUND AND Boost_FOUND)
add_subdirectory( cmake )
--
Matthew
I'm anti-ascii. Probably because I once worked with a guy who sent EVERY
BLOODY DESIGN SCHEMA as an ascii art thing. A year into that job and I
just about wanted to punch him in the head with an ascii fist. He
totally ruined ascii porn for me even. -- Aaron Seigo
----- End forwarded message -----
More information about the umbrello-devel
mailing list