Added ability to toggle on/off use of C system() function call, using OSG_SYSTEM_SUPPORTED Cmake option

This commit is contained in:
Robert Osfield
2018-01-12 19:52:31 +00:00
parent 6a3d9b2aa2
commit ae57f3cd46
10 changed files with 40 additions and 10 deletions

View File

@@ -14,6 +14,7 @@
#include <osgPresentation/SlideEventHandler>
#include <osgViewer/Viewer>
#include <osg/os_utils>
#include <osg/Notify>
#include <osgDB/FileUtils>
@@ -119,7 +120,7 @@ void KeyEventHandler::doOperation()
bool commandRunsInBackground = (_command.find("&")!=std::string::npos);
int result = system(_command.c_str());
int result = osg::system(_command.c_str());
OSG_INFO<<"system("<<_command<<") result "<<result<<std::endl;