Commit Graph

178 Commits

Author SHA1 Message Date
Sébastien Loriot 01af331c72 use https for all links to www.cgal.org and doc.cgal.org 2018-03-14 15:59:38 +01:00
Andreas Fabri bcbbf35dad Define CGAL_NORETURN also for VC++ and move the macro before the functions 2018-02-14 14:51:40 +00:00
Laurent Rineau 4b3244384f Merge pull request #2695 from sgiraudot/Point_set_shape_detection-Introducing_callbacks-GF
Shape Detection: Add Callback Mechanism
2018-01-17 10:42:41 +01:00
Laurent Rineau e8fca04385 Merge pull request #2691 from lrineau/Installation-fix_Boost_thread_required_or_not-GF
Installation: fix the detection of C++11 and the need for Boost Thread
2018-01-17 10:42:09 +01:00
Simon Giraudot d1179b5b04 Add cpp11::function (using either std::function or boost::function) 2018-01-12 09:54:14 +01:00
Laurent Rineau fa9f256781 Fix the use of __has_cpp_attribute
When =std=c++03 is used, `__has_cpp_attribute(something)` still returns
non-zero for valid C++11 attributes.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81513
2018-01-04 11:47:13 +01:00
Laurent Rineau e80136e750
Merge branch 'master' into Aos_2-surface_sweep-efif 2017-12-07 15:00:47 +01:00
Efi Fogel f1483cfa25 Merge branch 'Aos_2-surface_sweep-efif-old' into Aos_2-surface_sweep-efif
Merging Sebastien's fix to the surface-sweep cod.
Also, replaced all occurrences of '_SL_' with '_SS_'.
2017-12-07 15:56:00 +02:00
Laurent Rineau 777717ba7e Move config/ to cmake/modules/config/
That way, the directory will be installed along with CMake modules.
2017-12-06 12:53:05 +01:00
Laurent Rineau 3c6640bf59 Merge pull request #1436 from lrineau/CGAL-new_cmake-GF
Renewal of CMake scripts: header-only, ctest, CMake>=3.1

# Conflicts:
#	Installation/config/testfiles/CGAL_CFG_NESTED_CLASS_FRIEND_DECLARATION_BUG.cpp
2017-12-05 18:20:05 +01:00
Laurent Rineau 28bd89af65 Fix a stupid typo 2017-11-28 10:24:13 +01:00
Laurent Rineau 9eb2e30745 Deal with the macro CGAL_TEST_SUITE in header-only 2017-11-23 17:06:46 +01:00
Laurent Rineau a2a5ca91a1 Unify CGAL_HEADER_ONLY and CGAL_HEADER_ONLY_STEP_2 2017-11-23 17:06:46 +01:00
Efi Fogel 7936109c6c Merge branch 'Aos_2-surface_sweep-efif-old' into Aos_2-surface_sweep-efif
Conflicts:
	.travis.yml
	.travis/packages.txt
	Arrangement_on_surface_2/include/CGAL/Arr_batched_point_location.h
	Arrangement_on_surface_2/include/CGAL/Arr_bounded_planar_topology_traits_2.h
	Arrangement_on_surface_2/include/CGAL/Arr_default_overlay_traits.h
	Arrangement_on_surface_2/include/CGAL/Arr_overlay_2.h
	Arrangement_on_surface_2/include/CGAL/Arr_spherical_topology_traits_2.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_bounded_planar_batched_pl_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_bounded_planar_construction_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_bounded_planar_insertion_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_bounded_planar_overlay_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_bounded_planar_topology_traits_2_impl.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_bounded_planar_vert_decomp_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_planar_topology_traits_base_2.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_spherical_batched_pl_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_spherical_construction_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_spherical_insertion_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_spherical_overlay_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_spherical_vert_decomp_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_unb_planar_batched_pl_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_unb_planar_construction_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_unb_planar_insertion_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_unb_planar_overlay_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_unb_planar_topology_traits_2_impl.h
	Arrangement_on_surface_2/include/CGAL/Arr_topology_traits/Arr_unb_planar_vert_decomp_helper.h
	Arrangement_on_surface_2/include/CGAL/Arr_unb_planar_topology_traits_2.h
	Arrangement_on_surface_2/include/CGAL/Arr_vertical_decomposition_2.h
	Arrangement_on_surface_2/include/CGAL/Arrangement_2/Arr_default_planar_topology.h
	Arrangement_on_surface_2/include/CGAL/Arrangement_2/Arrangement_on_surface_2_global.h
	Arrangement_on_surface_2/include/CGAL/Arrangement_2/Arrangement_on_surface_2_impl.h
	Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_basic_insertion_traits_2.h
	Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_batched_pl_ss_visitor.h
	Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_construction_ss_visitor.h
	Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_default_overlay_traits_base.h
	Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_insertion_traits_2.h
	Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_no_intersection_insertion_ss_visitor.h
	Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_overlay_ss_visitor.h
	Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_overlay_subcurve.h
	Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_overlay_traits_2.h
	Arrangement_on_surface_2/include/CGAL/Surface_sweep_2/Arr_vert_decomp_ss_visitor.h
	Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_agg_meta_traits.h
	Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_agg_op.h
	Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_agg_op_sweep.h
	Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_agg_op_visitor.h
	Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_polygon_simplifier.h
	Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Gps_polygon_validation.h
	CGAL_ipelets/demo/CGAL_ipelets/arrangement.cpp
	Documentation/doc/Documentation/dependencies
	Installation/include/CGAL/config.h
	Snap_rounding_2/include/CGAL/Snap_rounding_2.h
	Surface_sweep_2/examples/Surface_sweep_2/CMakeLists.txt
	Surface_sweep_2/include/CGAL/Surface_sweep_2/No_intersection_surface_sweep_2_impl.h
	Surface_sweep_2/include/CGAL/Surface_sweep_2/No_overlap_event_base.h
	Surface_sweep_2/include/CGAL/Surface_sweep_2/Surface_sweep_2_utils.h
	Surface_sweep_2/include/CGAL/Surface_sweep_2_algorithms.h
	Sweep_line_2/include/CGAL/Sweep_line_2/Arr_construction_event.h
	Sweep_line_2/include/CGAL/Sweep_line_2/Arr_construction_subcurve.h
	Sweep_line_2/include/CGAL/Sweep_line_2/Arr_insertion_sl_visitor.h
	Sweep_line_2/include/CGAL/Sweep_line_2/Sweep_line_2_visitors.h
	Sweep_line_2/include/CGAL/Sweep_line_2/Sweep_line_curve_pair.h
	Sweep_line_2/include/CGAL/Sweep_line_2/Sweep_line_functors.h
	Sweep_line_2/include/CGAL/Sweep_line_2/Sweep_line_subcurve.h
	Sweep_line_2/include/CGAL/Sweep_line_empty_visitor.h
2017-11-16 16:31:52 +02:00
Laurent Rineau c6068691fa Merge pull request #2547 from lrineau/CMake-parse_CTest_XML_output-lrineau
CGAL testsuite implemented with CTest plus Python (part.1)
2017-11-13 11:13:54 +01:00
Sébastien Loriot 0698f79aff add SPDX identifier for files under the LGPL-3+ license 2017-11-12 10:17:50 +01:00
Laurent Rineau 05a3370ad3 Rename to <CGAL/functional.h> 2017-10-04 16:32:11 +02:00
Laurent Rineau 7e9f756935 Replace all std::unary_function by CGAL::unary_function 2017-10-04 15:57:09 +02:00
Andreas Fabri 2c2e26f07e Include CGAL/unary_function.h 2017-10-04 13:36:00 +01:00
Laurent Rineau 931a0a2689 second fix for: Add hack in config.h for boost detection of CXX11 features with ICC 2017-07-11 11:59:40 +02:00
Laurent Rineau 33871eac4b fix: "Add hack in config.h for boost detection of CXX11 features with ICC"
We have to check `__GXX_EXPERIMENTAL_CXX0X__`.

The issue in Boost-1.53 is that the other macro
`__GXX_EXPERIMENTAL_CPP0X__` is checked instead.
2017-07-11 11:59:39 +02:00
Simon Giraudot 6bc9fb5852 Add hack in config.h for boost detection of CXX11 features with ICC 2017-07-11 11:59:18 +02:00
Efi Fogel d10ed5ad2c Introduced CGAL_CFG_NO_CPP0X_TEMPLATE_ALIASES and used it 2017-07-10 12:29:17 +03:00
Laurent Rineau b0336e6558 Workaround for https://svn.boost.org/trac10/ticket/12534
That is a workaround for the bug about the partial specialization of

    boost::is_enum<std::pair<T, U> >

being too late.

The bug has been in Boost-1.62 only. For that version (currently the
default version in Debian-testing), we include a header from Boost
container as soon as possible: in `<CGAL/config.h>`.
2017-07-07 11:23:21 +02:00
Laurent Rineau 718512a7ba Handle <CGAL/compiler_config.h> for MSVC
Actually, in our testsuite results, no other compiler has any bug
detected by the `CGAL_CFG*BUG` macros.
2017-03-27 18:04:53 +02:00
Laurent Rineau 1f3ba3c7ab Improvements to CGAL_HEADER_ONLY
- Now `<CGAL/compiler_config.h>` is no longer used.
  - GMP and MPFR are assumed.
- `<CGAL/version.h>` is in the distribution.
2017-03-27 18:04:52 +02:00
Andreas Fabri 8186bf41ae Fix CGAL_pragma_warning for Visual C++ 2017-03-22 14:50:47 +01:00
Simon Giraudot 1385d5fc9b Add macros with old versions of boost 2017-02-27 14:21:20 +01:00
Simon Giraudot 6525d58fbf Fix error (removed lines by mistake) in config.h 2017-02-27 10:03:51 +01:00
Simon Giraudot 588c8634b9 Add CGAL::cpp11::unordered_set/map using boost or std 2017-02-27 09:56:54 +01:00
Laurent Rineau 680210cab5 Improvements
- move `CGAL_WARNING` in `<CGAL/config.h>`,

- create the macro `CGAL_pragma_warning`,

- use `CGAL_pragma_warning` to simplify `<CGAL/license/lgpl.h>` and
  `<CGAL/license/gpl.h.in>`.

- add messages in `include/CGAL/license/generate_files.cmake`

- add test files, that do nothing but can be modified to check errors
  and warning.
2017-01-19 15:20:23 +01:00
Marc Glisse c58d0c319a Allow CGAL_EIGEN3_DISABLED to disable auto-detection of Eigen3. 2016-11-07 21:46:10 +01:00
Marc Glisse 933cb0f14a If we detect that Eigen3 is present, enable it. 2016-11-04 16:22:52 +01:00
Laurent Rineau 08126075a7 Merge pull request #1582 from afabri/Circular_kernel_2-ICL_variant_bug-GF
Circular_kernel_2: Add a dummy field to the variant to work around an ICL bug
2016-10-20 09:47:35 +02:00
Andreas Fabri eb64523536 Make the additional type a maco. Add operator(int) for a visitor 2016-10-18 16:03:40 +02:00
Laurent Rineau 78c8179ae6 Fix for clang
With clang, at least with older version like 3.5,
`__has_attribute(fallthrough)` is true but the syntax

    __attribute__(fallthrough)

is not recognized.
2016-10-17 13:45:42 +02:00
Laurent Rineau 5df371c0c1 Oops! 2016-10-17 13:45:42 +02:00
Laurent Rineau 90aa157c7b Conditional definition of CGAL_FALLTHROUGH 2016-10-17 13:45:42 +02:00
Andreas Fabri 0cf03af615 Preliminary support for adressing the -Wimplicit-fallthrough warning 2016-10-17 13:45:42 +02:00
Laurent Rineau f2205ee9da Merge pull request #1128 from maxGimeno/Fix_for_1127-GF
Add a macro to customize deprecation warnings
2016-10-17 10:01:40 +02:00
Laurent Rineau 451577719c Merge pull request #1542 from lrineau/Installation-fix_CGAL_SetupBoostlrineau
try_run to detect the C++ version
2016-10-07 14:38:22 +02:00
Laurent Rineau 95f3b09de3 Use the same test as in <CGAL/config.h> 2016-10-05 10:14:53 +02:00
Marc Glisse 942f13c26b Update list of boost headers that break Qt4 moc. 2016-09-30 11:12:19 +02:00
Laurent Rineau 1ec30bd830 Merge branch 'releases/CGAL-4.8-branch'
This merge imports:
> Merge pull request #1304 from sloriot/Installation-remove_config_test
2016-07-27 16:18:33 +02:00
Sébastien Loriot 98121af143 replace library compile time test 2016-07-26 11:58:03 +02:00
Maxime Gimeno dc797391a3 Fix macro mithout argument. 2016-07-13 10:27:24 +02:00
Clement Jamin 280036e488 Fix CGAL_DEPRECATED_UNUSED definition 2016-07-01 16:54:58 +02:00
Guillaume Damiand d544f4a5f7 Remove the unused variable warning for the deprecated variable default_random. 2016-06-03 18:11:34 +02:00
Maxime Gimeno 1a76a04931 Add a macro to customize deprecation warnings. 2016-06-02 15:45:20 +02:00
Clement Jamin fd1b4889f0 Disable auto-link when using header-only CGAL 2016-03-09 10:20:05 +01:00