Didn't know cmake can set variables too, just like how gcc do. Wonderful, thanks
By the way, the newest version in the SVN integrates OpenThreads and OpenSceneGraph together, so this OPENTHREADS_LIBRARY is not needed since the openThreads lib is in the same directory as openscenegraph. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Spott Sent: Thursday, May 03, 2007 1:19 PM To: [email protected] Subject: Re: [osg-users] CMake, OpenThreads, and MacOS 10 Doug McCorkle wrote: > On May 2, 2007, at 7:58 PM, Shuxing Xiao wrote: > > I just add the variable OPENTHREADS_LIBRARY manually to the environmental > > variable list, pointing to the openthreads.a generated before. And > > everything works fine. > > > I tried to point that variable at libOpenThreads.dylib before OT was > moved into OSG and I still got the error. I was unable to figure out > how to correct the problem in CMake. Yes, this is a bit strange. To my experience it is required to define this "VARIABLE" on the CMake command line - setting it in the environment didn't help: # ~> cmake -D OPENTHREADS_LIBRARY=/<path_to_library> To reduce confusion it would be nice to have a list that explains the different variable and how/where to set each of them. Cheers, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -------------------------------------------------------------------------- _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
