James, Thanks for this - I did not know about this feature.
Thanks, Brandon Brandon Hamm Principal Software Engineer Simulation and Training Solutions QinetiQ North America 890 Explorer Blvd., Huntsville, AL 35806 [email protected]<mailto:[email protected]> / 256-922-4722 From: [email protected] [mailto:[email protected]] On Behalf Of James Turner Sent: Thursday, January 30, 2014 2:54 AM To: OpenSceneGraph Users Subject: Re: [osg-users] [osg-submissions] Added CMake options to disable V8, Lua, and Python plugins On 30 Jan 2014, at 05:01, Hamm, Brandon <[email protected]<mailto:[email protected]>> wrote: In my case, I had V8 and python libraries available that were being located by CMake, but I did not want to the corresponding OSG plugins to be built with these libraries. I saw on the osg-users list that someone else was wanting something similar (the ability to turn these plugins off in the build, or rather, a means to exclude them from being generated). I modified src/osgPlugins/CMakeLists.txt to add the following options: OSG_BUILD_V8_PLUGIN OSG_BUILD_PYTHON_PLUGIN OSG_BUILD_LUA_PLUGIN They are all three ON by default, but can be set to OFF to exclude the respective plugin. I found a different solution which doesn't require OSG changes at all: -DCMAKE_DISABLE_FIND_PACKAGE_PythonLibs=1 I was completely unaware of this feature but one of my colleagues is a CMake contributor and pointed it out. Essentially you disable and find(Foo) using this style, unless it is REQUIRED - the only catch is the capitalization of the suffix must match that using in the find() declaration precisely. (Oh and it requires 'fairly' recent CMake - 2.8 at least) Arguably making the options explicit in OSG is nicer to users however, since this CMake option is obscure to say the least! Kind regards, James The information contained in this message, and any attachments, may contain confidential and/or privileged material. It is intended solely for the person or entity to which it is addressed. Any review, retransmission, dissemination, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

