I don't remember the beginning of this thread, and what platform it is
on, so hopefully this will be relevant.

There are makefiles with the preprocessor targets, making this very
easy.

For example, to get the preprocessor output for (for example) Shape.cpp,
I do:
> cd src/osg
> make Shape.i

Shape.i is created in src/osg/CMakeFiles/osg.dir/Shape.i.

This is very handy.

andy

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul
Melis
Sent: Friday, September 28, 2007 3:09 AM
To: [EMAIL PROTECTED]; OpenSceneGraph Users
Subject: Re: [osg-users] Please test SVN version of OpenSceneGraph

Brian Keener wrote:
<snip>
>I tried the change you suggested but no go.  I think it might be deeper
in 
>/usr/include/math.h where they do a define on log2 and log2f as follows

>but....
>
>#define log2(x) (log(x) / M_LOG2_E)
>#define log2f(x) (logf(x) / (float) M_LOG2_E)
>
>not sure.
>  
>
If there is a way to display the compile command that cmake is executing

in this case, then you could try to add the -E switch to that command, 
so that the preprocessed output can be inspected.
This should probably help in identifying what is going on.

Paul

>bk
>
>
>
>_______________________________________________
>osg-users mailing list
>[email protected]
>http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.o
rg
>  
>

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to