diff --git a/Convex_hull_3/include/CGAL/Convex_hull_traits_3.h b/Convex_hull_3/include/CGAL/Convex_hull_traits_3.h index 699155f983d..e243afcae86 100644 --- a/Convex_hull_3/include/CGAL/Convex_hull_traits_3.h +++ b/Convex_hull_3/include/CGAL/Convex_hull_traits_3.h @@ -159,7 +159,12 @@ struct GT3_for_CH3 { - template + template ::type::value && + R_::Has_filtered_predicates_tag::value + > > class Convex_hull_traits_3 { public: diff --git a/Installation/cmake/modules/CGAL_add_test.cmake b/Installation/cmake/modules/CGAL_add_test.cmake index 1a2bc19f544..926b8bb9948 100644 --- a/Installation/cmake/modules/CGAL_add_test.cmake +++ b/Installation/cmake/modules/CGAL_add_test.cmake @@ -114,7 +114,12 @@ function(cgal_setup_test_properties test_name) APPEND PROPERTY DEPENDS "compilation_of__${exe_name}") endif() - if(POLICY CMP0066) # CMake 3.7 or later + get_filename_component(_source_dir_abs ${CMAKE_CURRENT_SOURCE_DIR} ABSOLUTE) + get_filename_component(_binary_dir_abs ${CMAKE_CURRENT_BINARY_DIR} ABSOLUTE) + string(FIND "${_binary_dir_abs}" "${_source_dir_abs}" _search_binary_in_source) + + if(_search_binary_in_source EQUAL "-1" + AND POLICY CMP0066) # CMake 3.7 or later if(NOT TEST ${PROJECT_NAME}_SetupFixture) if(ANDROID) add_test(NAME ${PROJECT_NAME}_SetupFixture diff --git a/Nef_3/include/CGAL/boost/graph/convert_nef_polyhedron_to_polygon_mesh.h b/Nef_3/include/CGAL/boost/graph/convert_nef_polyhedron_to_polygon_mesh.h index 7393881de00..3034073ea04 100644 --- a/Nef_3/include/CGAL/boost/graph/convert_nef_polyhedron_to_polygon_mesh.h +++ b/Nef_3/include/CGAL/boost/graph/convert_nef_polyhedron_to_polygon_mesh.h @@ -151,8 +151,8 @@ struct Shell_polygons_visitor polygons.back().push_back(vertex_indices[v[1]]); polygons.back().push_back(vertex_indices[v[2]]); polygons.push_back( std::vector() ); - polygons.back().push_back(vertex_indices[v[2]]); polygons.back().push_back(vertex_indices[v[0]]); + polygons.back().push_back(vertex_indices[v[2]]); polygons.back().push_back(vertex_indices[v[3]]); } else @@ -162,8 +162,8 @@ struct Shell_polygons_visitor polygons.back().push_back(vertex_indices[v[0]]); polygons.back().push_back(vertex_indices[v[2]]); polygons.push_back( std::vector() ); - polygons.back().push_back(vertex_indices[v[0]]); polygons.back().push_back(vertex_indices[v[2]]); + polygons.back().push_back(vertex_indices[v[0]]); polygons.back().push_back(vertex_indices[v[3]]); } }