Added optional compilation of setenv code
This commit is contained in:
parent
9f81ef8561
commit
8762f9a31e
@ -450,17 +450,13 @@ int main( int argc, char **argv )
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
std::string options;
|
||||
while(arguments.read("--optimizer",options))
|
||||
{
|
||||
osg::notify(osg::NOTICE)<<"Setting "<<options<<std::endl;
|
||||
setenv("OSG_OPTIMIZER",options.c_str(),1);
|
||||
|
||||
char* result = getenv("OSG_OPTIMIZER");
|
||||
if (result) osg::notify(osg::NOTICE)<<"Got value "<<result<<std::endl;
|
||||
else osg::notify(osg::NOTICE)<<"No value"<<std::endl;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
FileNameList fileNames;
|
||||
OrientationConverter oc;
|
||||
|
Loading…
Reference in New Issue
Block a user