Bit of a CMake / OSG packaging question here...

I noticed that a lot of the Find modules checked into CMakeModules have the
following added to their search paths for finding libraries and header files

    [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\
Manager\\Environment;OSG_ROOT]/include
or
    [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\
Manager\\Environment;OSG_ROOT]/lib

By adding the above lines to the list of paths to search for in FIND_PATH()
and FIND_LIBRARY() calls, this has the side-effect of causing a CMake
configured build of OSG to find these libraries in the location where the
unofficial WIN32 installer installs the OSG if 3rdPartyLibs isn't present.
Was this what was intended?

This does have a number of side effects that people might not be aware of.
One is that if you have the unofficial OSG installer installed on your
system if you go to compile OSG with MinGW it will pick up these libraries
instead of not finding any at all (which causes linking errors in the
build).  Another side effect is that a user that has the unofficial OSG
installer installed on their system is going to pick up these libraries if
they don't know about having a 3rdPartyLibs folder present.  While this may
be convenient in some cases it may not be what the user wants (what if they
are using VS7.1 to compile but they pick up VS8 libraries distributed with
OSG 2.0?  What about if they are using VS8 and pick up VS7.1 libraries
released with OSG 1.2?)

Anyways, I just wanted to know if this was intentional or not or just a
copy-and-paste thing that needs fixing?

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

Reply via email to