CGAL Lab: fix linter warnings and CMake ITK warning (#9085)

## Summary of Changes

- fix linter warnings in `Scene_polygon_soup_item.cpp`
- fix a CMake warning about ITK using deprecated headers

## Release Management

* Affected package(s): Lab
* License and copyright ownership: N/A, maintenance by GF
This commit is contained in:
Sebastien Loriot 2025-10-13 09:37:15 +02:00 committed by GitHub
commit 80f3603008
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -39,6 +39,7 @@ if(ITK_FOUND)
message(STATUS "ITK found")
include(${ITK_USE_FILE})
target_link_libraries(mesh_3_plugin PRIVATE CGAL::ITK_support)
target_compile_definitions(mesh_3_plugin PRIVATE ITK_LEGACY_FUTURE_REMOVE)
endif(ITK_FOUND)
find_package(VTK 9.0 QUIET COMPONENTS ImagingGeneral IOImage IOXML NO_MODULE)

View File

@ -39,11 +39,7 @@
#include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <streambuf>
#include <vector>
using namespace CGAL::Three;
@ -565,7 +561,7 @@ Scene_polygon_soup_item::save(std::ostream& out) const
}
writer.write_footer();
return (bool) out;
return false == out.fail();
}
bool