[Cmake] How is CMAKE_USE_PTHREADS defined?

Miller, James V (CRD) millerjv at crd.ge.com
Wed Nov 28 12:59:07 EST 2001


How is the CMAKE_USE_PTHREADS defined by CMake?  Does it only appear in the cache for Insight because
itkConfigure.h.in has #cmakedefine CMAKE_USE_PTHREADS?
 
If pthreads are used, STL needs an extra symbol defined _PTHREADS so that it will thread safe memory
allocation.  I added the definition in a CMakeLists.txt file (it may need to be UseITK.cmake or
itkCMakeOptions.cmake instead) as a stop gap.  But it would seem that CMake should automatically
define this symbol if pthreads are being used on a project so that STL will be thread safe.


Jim Miller 
_____________________________________
Visualization & Computer Vision
GE Corporate Research & Development
Bldg. KW, Room C218B
P.O. Box 8, Schenectady NY 12301

millerjv at crd.ge.com < mailto:millerjv at crd.ge.com <mailto:millerjv at crd.ge.com> >
(518) 387-4005, Dial Comm: 8*833-4005, 
Cell: (518) 505-7065, Fax: (518) 387-6981 


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20011128/572b47da/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Miller, James V (CRD).vcf
Type: application/octet-stream
Size: 392 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20011128/572b47da/attachment.obj>


More information about the CMake mailing list