Hi Sam, This might not work for all osg specific package find scripts in OpenSceneGraph\CMakeModules, but you should be able to disable packages from the cmake command line:
from cmake 3.0 documentation: Every non-REQUIRED find_package call can be disabled by setting the CMAKE_DISABLE_FIND_PACKAGE_<PackageName> <https://cmake.org/cmake/help/v3.0/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html#variable:CMAKE_DISABLE_FIND_PACKAGE_%3CPackageName%3E> variable to TRUE. If I read the cmake compatibility matrix correctly this should work for cmake 2.8.5 and up. for example: cmake ../OpenSceneGraph -DCMAKE_BUILD_TYPE=Release -DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg:bool=TRUE Regards, Laurens. On Tue, Nov 8, 2016 at 7:31 PM, Alberto Luaces <[email protected]> wrote: > Yes, there is no "high-level" way. I hope it works for you. > > sam writes: > > > Hi Alberto, > > > > No. I was hoping to avoid hacking the CMakeFiles up. I will give this a > try. > > > > Thanks! > > > > On Tue, Nov 8, 2016 at 5:07 AM, Alberto Luaces <[email protected]> wrote: > > > > sam writes: > > > > > Hi All, > > > > > > Is there a simple way to disable the plugin project files from being > generated via CMake? > > > > > > > Hi, Sam. Did you try to comment or delete the 31st line of > src/CMakeLists.txt? > > > > https://github.com/openscenegraph/OpenSceneGraph/ > blob/master/src/CMakeLists.txt#L31 > > -- > Alberto > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

