[CMake] GTK doesn't seem to be include correctly on Ubuntu 8.10

Philip Lowman philip at yhbt.com
Wed Jan 14 07:42:21 EST 2009


On Tue, Jan 13, 2009 at 2:57 PM, Pierrick Grasland <
pierrick.grasland at gmail.com> wrote:

> Hello,
>
> Sorry. I forgot to include gtkCallback in my mail.
>
> Actually, Gio/gfile doesn't seems to be corrupted. (It was proved, with a
> previous version of our program working perfectly)
>
> We nailed down a problem : an header, protected with #define, was include
> several times, but generate this error (I wasn't able to define why, because
> it doesn't include gtk).
>
> So, actually, like we said in France our program seems to be "Tomber en
> marche" (opposite of "Tomber en panne"/breaking down)
>
> I'm trying to find out why he is doing this, but with as new afternoon on
> this bug, I don't think our errors are from our CMake configurations.
>
> This is after I
> defined -DUSE_GTK_GUI).
>
> Is it how we could define specific #define in an environment ? I will add
> it, I was searching this one :)


Yes, use ADD_DEFINITIONS(-DUSE_GTK_GUI) in your CMakeLists.txt when you want
to define that symbol (presumably when GTK is being used).


> Thanks a lot !


No problem.


-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090114/e3a660d2/attachment.htm>


More information about the CMake mailing list