Hi,

On Friday 29 May 2009, Stephan Maximilian Huber wrote:
> I am facing a problem with atomic operations and CMake and OS X. If I
> configure CMake to compile against the 10.4 SDK I'll get compile errors
> in OpenThreads/Atomic.cpp, because CMake decided to use
> _OPENTHREADS_ATOMIC_USE_BSD_ATOMIC which is only valid when compiling
> against the 10.5 SDK. The cmake-test succeeds because I am on a
> 10.5-system, but I want to compile osg against 10.4 so the libs are
> usable there too.
That means that the test for the BSD features is not complete!
At the time I did that initial patch, the configure test included all 
functions we really need. At a later time there were some additional 
functions added, but the test was not extended as far as I see.
So we might change the cmake test code to something that really tests what is 
required. Then you would get the mutex fallback.

Anyway, is there any chance to back port the current code that to the 10.4 
sdk, so that you get that atomic stuff?
With the atomic operations osg is noticable faster.

> To rephrase: This is only a problem, when I am on a 10.5 system, and I
> want to compile against the 10.4 sdk. On a 10.4 system, the CMake-test
> will fail.
>
> So is there a way to force this setting via CMake? Or use the chosen SDK
> when compiling the atomic-test? I tried some stuff, but didn't succeed.
Currently not.

> (I can edit Openthreads/Config per hand, but it seems errorprone)
Then you need to make sure that cmake does not rewrite that file.

Greetings

Mathias

-- 
Dr. Mathias Fröhlich, science + computing ag, Software Solutions
Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to