CMake is now set up to try a test compile with -DBT_USE_DOUBLE_PRECISION. If
that succeeds, it sets OSGBULLET_USE_DOUBLE_PRECISION to true, which adds the
corresponding definition to the osgBullet project/make files. Your osgBullet
will build for double precision. All is well.
If that compile fails, it attempts the same test compile again, but this time
without the definition (single precision). If this succeeds, then it sets
OSGBULLET_USE_DOUBLE_PRECISION to false, and the osgBullet project/make files
build for single precision. All is well.
It both of the above compiles fail, CMake displays a warning and dumps the
single precision build output. If you get this, please post your build output to
the list so I can attempt to figure out why the test compile is failing. In the
meantime, you can still build osgBullet by setting
OSGBULLET_USE_DOUBLE_PRECISION manually, so at least you're no worse off than
you were with v2.0 and previous. :-)
Currently, I'm able to reproduce a failure if I've built only the Release
version of Bullet on Windows with VS 2010, and the CMake test compiles fail
because they are trying to do a Debug build. This causes a link failure in VS
2010. I'm working on a fix for this.
Thanks, and let me know of any problems...
--
-Paul Martz Skew Matrix Software
http://www.skew-matrix.com/
This is bizarre. If the try_compile detects double precision Bullet, it *should*
already set the checkbox.
Can you do me a favor... Delete your cache and do a CMake configure again, and
post the CMake output here. I'm particularly interested in the output produced
during the try_compile attempts.
I'll be working on this more tomorrow, I want to get rid of the Debug versus
Release issue on Windows.
-Paul
Ugh. I love/hate CMake. Thanks for digging, I'll get this checked in shortly
(have some other stuff going on right now).
And I'll also work on that (apparently separate) Debug versus Release issue I found.
On 11/8/2011 3:24 AM, Karrot wrote: