Quoting Koen Deforche <[EMAIL PROTECTED]>:
> All,
>
> Unless your hobby is setting up build files or configure scripts, I am
> afraid the latest CVS commit will draw your attention to an unpleasant
> change.
>
> Until now, Wt installed its include files directly into the
> (...)/include folder, where "(...)" corresponds to
> ${CMAKE_INSTALL_PREFIX} as configured when building/installing Wt.
> Because this clobbers the include directory, the new CVS version of Wt
> installs its headers in (...)/include/Wt.
>
> While this is much nicer, and allows you to more easily install Wt in
> a standard include directory (and is in fact a mandatory change to
> have Wt as a standard package in debian/ubuntu as we learned from
> Pau), this will require you to update your configure/build files to
> search for the include files inside the 'Wt/' folder.
>
> By having both (...)/include/Wt and (...)/include in your include
> path, you can also migrate to scoping Wt's include files like:
>
> #include <Wt/WLineEdit>
>
> However, even if you do this, you still have to have (...)/include/Wt
> in your include path, until we upgrade the Wt include files themselves
> (which is foreseen for the next major release).
Just two quick additions in case you want to stick to the "old" way
(#include <WApplication>) instead of the new way (#include
<Wt/WApplication>):
- Tell your compiler and/or build-system to search for headers in
(...)/include/Wt (that would be /usr/include/Wt in Debian and Ubuntu).
This is done with INCLUDE_DIRECTORIES(/the/path/to/include/Wt) in
CMake, -I/the/path/to/include/Wt if you use gcc directly, or
AM_CPPFLAGS (or INCLUDES) if you are masochistic enough to use Automake.
- If you use CMake and FindWt.cmake with your project, which is my
advice, you just need to add INCLUDE_DIRECTORIES( ${Wt_INCLUDE_DIR} )
and it will find the header files regardless of where they are
installed: (...)/include and (...)/include/Wt will both work:
PROJECT( blah )
FIND_PACKAGE( Wt REQUIRED )
INCLUDE_DIRECTORIES( ${Wt_INCLUDE_DIR} )
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest