Skip to content

Commit

Permalink
plugins should not depend on Polyhedron_3
Browse files Browse the repository at this point in the history
  • Loading branch information
lrineau committed Jan 10, 2024
1 parent aeda27f commit 1f26c03
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Polyhedron_demo_c3t3_binary_io_plugin::load(
item->set_valid(false);

if(CGAL::SMDS_3::build_triangulation_from_file(in, item->c3t3().triangulation(),
/*verbose = */false, /*replace_subdomain_0 = */false, /*allow_non_manifold = */true))
/*verbose = */true, /*replace_subdomain_0 = */false, /*allow_non_manifold = */true))
{
update_c3t3(item->c3t3());

Expand Down
3 changes: 0 additions & 3 deletions Polyhedron/demo/Polyhedron/polyhedron_demo_macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ include(${CGAL_MODULES_DIR}/CGAL_add_test.cmake)
endif()
# Link with CGAL
target_link_libraries( ${plugin_name} PUBLIC CGAL::CGAL )
if(TARGET Polyhedron_3)
add_dependencies( ${plugin_name} Polyhedron_3 )
endif()
if(NOT TARGET CGALlab_all_plugins)
add_custom_target(CGALlab_all_plugins)
endif()
Expand Down
2 changes: 1 addition & 1 deletion SMDS_3/examples/SMDS_3/c3t3_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int main(int argc, char* argv[])
Triangulation tr;

std::ifstream is(filename, std::ios_base::in);
if(!CGAL::IO::read_MEDIT(is, tr))
if(!CGAL::IO::read_MEDIT(is, tr, CGAL::parameters::verbose(true)))
{
std::cerr << "Failed to read" << std::endl;
return EXIT_FAILURE;
Expand Down

0 comments on commit 1f26c03

Please sign in to comment.