[osg-submissions] API configurations in a seperate Config include file
Bob Kuehne
rpk at mac.com
Fri Jun 20 14:21:59 PDT 2008
hi jean, robert,
yeah, i'm torn about this too - it's a little odd to do, have this
bifurcated osg include path thing. i don't mind adding another include
directory to my stuff, that's easy enough, but it smells like
something isn't being done in a very clean way. i'm just not yet sure
what's better, as i'm not sure what probelm is being solved by osg/
Config, yet.
oh, fyi, i never do installs, so that technique is out for me.
installing means putting stuff in a system-ish spot, and i like to
have have a clean development machine. another reason i don't install
is so i can build/test against multiple versions of osg. all i do is
switch where the my build cmake stuff looks to find osg headers and
osg binaries, and i'm off.
anyway, i'll add include paths for now, and look at the rest, later.
bob
On Jun 20, 2008, at 4:20 PM, Jean-Sébastien Guay wrote:
> Hi Robert,
>
>> If you do an install of the OSG this should solve the problem. If
>> you
>> don't do an install then doing out source builds will require you to
>> add an extra include to find the Config files. So doable, but not as
>> pretty as it could be.
>
> OK, so since I always do an install I shouldn't run into the same
> problem as Bob.
>
> Any reason why CMake can't put the generated Config file into the
> source's include dir, even for out of source builds? I don't know
> what's worse, CMake putting files into your source tree even for out-
> of-source builds or referencing a directory in the build tree in a
> project's include paths... That's why I always do an install, I
> personally see the build directory as strictly temporary - it
> shouldn't be used for anything other than while building.
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay jean-sebastien.guay at cm-labs.com
> http://www.cm-labs.com/
> http://whitestar02.webhop.org/
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
More information about the osg-submissions
mailing list