mirror of https://github.com/CGAL/cgal
Add detection of Boost.Thread.
This commit is contained in:
parent
332aac2a86
commit
affe68b4f7
|
|
@ -1806,6 +1806,9 @@ Installation/config/support/S06a-BOOST_PROGRAM_OPTIONS -text
|
|||
Installation/config/support/S06b-MS_BOOST_PROGRAM_OPTIONS -text
|
||||
Installation/config/support/S06c-BOOST_PROGRAM_OPTIONS_GCC -text
|
||||
Installation/config/support/S07-BOOST_BIMAP -text
|
||||
Installation/config/support/S08a-BOOST_THREAD -text
|
||||
Installation/config/support/S08b-MS_BOOST_THREAD -text
|
||||
Installation/config/support/S08c-BOOST_THREAD_GCC -text
|
||||
Installation/config/support/S15-X11 -text
|
||||
Installation/config/support/S20-GMP -text
|
||||
Installation/config/support/S21-GMPXX -text
|
||||
|
|
@ -1855,6 +1858,7 @@ Installation/config/support/S93a-TAUCSFREEBSDLAPACK -text
|
|||
Installation/config/support/S93b-TAUCSFREEBSDATLAS -text
|
||||
Installation/config/support/S96-TAUCSDARWIN -text
|
||||
Installation/config/support/parse_files.awk -text
|
||||
Installation/config/support/test_BOOST_THREAD.cpp -text
|
||||
Installation/src/CGAL/all_files.cpp -text
|
||||
Interpolation/doc_tex/Interpolation/nn_coords.eps -text svneol=unset#application/postscript
|
||||
Interpolation/doc_tex/Interpolation/nn_coords.gif -text svneol=unset#image/gif
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
# The Boost library (http://www.boost.org/) extends the C++ std library
|
||||
|
||||
DESCRIPTION =
|
||||
PROVIDES = BOOST_THREAD
|
||||
CXXFLAGS =
|
||||
LDFLAGS =
|
||||
LIBS = boost_thread
|
||||
REQUIRES = BOOST
|
||||
INCOMPATIBLE = DOLLAR_WINDOWS_COMPILER
|
||||
STDINCLDIRS =
|
||||
INCLTHING =
|
||||
STDLIBDIRS = /usr/lib:/sw/lib
|
||||
LIBTHING = libboost_thread.\*
|
||||
COMPILETESTFLAGS =
|
||||
|
||||
# EOF
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# The Boost library (http://www.boost.org/) extends the C++ std library
|
||||
|
||||
DESCRIPTION =
|
||||
PROVIDES = BOOST_THREAD
|
||||
CXXFLAGS =
|
||||
LDFLAGS =
|
||||
LIBS =
|
||||
REQUIRES = DOLLAR_WINDOWS_COMPILER BOOST
|
||||
INCOMPATIBLE =
|
||||
STDINCLDIRS =
|
||||
INCLTHING =
|
||||
STDLIBDIRS =
|
||||
LIBTHING =
|
||||
COMPILETESTFLAGS =
|
||||
|
||||
# EOF
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# The Boost library (http://www.boost.org/) extends the C++ std library
|
||||
|
||||
DESCRIPTION = gcc/cygwin
|
||||
PROVIDES = BOOST_THREAD
|
||||
CXXFLAGS =
|
||||
LDFLAGS =
|
||||
LIBS = boost_thread-gcc-mt
|
||||
REQUIRES = BOOST
|
||||
INCOMPATIBLE = DOLLAR_WINDOWS_COMPILER
|
||||
STDINCLDIRS =
|
||||
INCLTHING =
|
||||
STDLIBDIRS =
|
||||
LIBTHING =
|
||||
COMPILETESTFLAGS =
|
||||
|
||||
# EOF
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
// Copyright (c) 2007 INRIA Sophia-Antipolis (France).
|
||||
// All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation; version 2.1 of the License.
|
||||
// See the file LICENSE.LGPL distributed with CGAL.
|
||||
//
|
||||
// Licensees holding a valid commercial license may use this file in
|
||||
// accordance with the commercial license agreement provided with the software.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/trunk/Installation/config/support/test_BOOST_PROGRAM_OPTIONS.cpp $
|
||||
// $Id: test_BOOST_PROGRAM_OPTIONS.cpp 37323 2007-03-20 19:14:02Z reichel $
|
||||
//
|
||||
//
|
||||
// Author(s) : Sylvain Pion
|
||||
|
||||
// Tests if BOOST.THREAD is available.
|
||||
|
||||
#include <iostream>
|
||||
#include <cassert>
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/thread/tss.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "version=" << BOOST_VERSION/100000 << "."
|
||||
<< ((BOOST_VERSION / 100) % 100) << "."
|
||||
<< BOOST_VERSION % 100 << std::endl;
|
||||
|
||||
boost::thread_specific_ptr<int> z;
|
||||
if (z.get() == NULL) {
|
||||
z.reset(new int(1));
|
||||
}
|
||||
assert(*z.get() == 1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue