File: itk-sized-deallocation.patch

package info (click to toggle)
sight 25.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 43,252 kB
  • sloc: cpp: 310,629; xml: 17,622; ansic: 9,960; python: 1,379; sh: 144; makefile: 33
file content (22 lines) | stat: -rw-r--r-- 982 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Fix build failure with ITK 5.4, because of sized-deallocation
Author: Flavien Bridault <fbridault@ircad.fr>
Forwarded: https://git.ircad.fr/sight/sight/-/issues/1415

--- sight.orig/lib/filter/image/CMakeLists.txt
+++ sight/lib/filter/image/CMakeLists.txt
@@ -1,4 +1,4 @@
-sight_add_target(filter_image TYPE LIBRARY FAST_DEBUG ON)
+sight_add_target(filter_image TYPE LIBRARY FAST_DEBUG ON PCH OFF)
 
 # On windows for a strange reason the VXL "core" directory (needed by itkArray.h) is not exported by ITK
 # Mark it as a private system directory to avoid putting hardcoded paths in .cmake files
--- sight.orig/module/filter/point/CMakeLists.txt
+++ sight/module/filter/point/CMakeLists.txt
@@ -4,7 +4,4 @@
 
 target_link_libraries(module_filter_point PRIVATE VTK::CommonDataModel)
 
-find_package(ITK QUIET COMPONENTS ITKCommon REQUIRED)
-target_link_libraries(module_filter_point PRIVATE ITKCommon)
-
 target_link_libraries(module_filter_point PUBLIC data io_itk ui)