Skip to content

Apply patch for use with add_subdirectory in other projects

Andreas Gravgaard Andersen requested to merge (removed):master into master
  • I use plastimatch in my code with the add_subdirectory from CMake. However, the CMAKE_SOURCE_DIR used in the plastimatch cmake then refers to the master project source dir and will generate a lot of errors. This is a quite simple fix by using CMAKE_CURRENT_SOURCE_DIR instead.

  • A small fix to Rtss_roi to avoid double free (I encountered that problem by std::copy'ing data from the object, but the compiler optimized to memmove).

  • Also I tried using ITK 5 and got a few errors which i tried to correct, but I got other problems and didn't work further on that. If you 'cherry-pick', these changes can be left out.

Edited by Andreas Gravgaard Andersen

Merge request reports