Skip to content

Commit

Permalink
BUG: Remove netnlib triangle classes
Browse files Browse the repository at this point in the history
These are incompatible with ITK's license per Issue #1913.
  • Loading branch information
thewtex committed Jul 13, 2020
1 parent 2121eed commit 7f95961
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 19,903 deletions.
2 changes: 1 addition & 1 deletion Modules/ThirdParty/VNL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ else()
${ITKVNL_BINARY_DIR}/src/vxl/vcl
${ITKVNL_BINARY_DIR}/src/vxl/core
)
set(ITKVNL_LIBRARIES itkvnl_algo itkvnl itkv3p_netlib itknetlib itkvcl)
set(ITKVNL_LIBRARIES itkvnl_algo itkvnl itkv3p_netlib itkvcl)

if(ITK_TEMPLATE_VISIBILITY_DEFAULT)
add_definitions( "-DVNL_TEMPLATE_EXPORT=__attribute__((visibility(\"default\")))")
Expand Down
2 changes: 1 addition & 1 deletion Modules/ThirdParty/VNL/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ add_subdirectory(vxl)
# Retrive the variable type to CACHE.
set(BUILD_EXAMPLES ${BUILD_EXAMPLES} CACHE BOOL "Build the examples from the ITK Software Guide." FORCE)

foreach(lib itkvcl itkv3p_netlib itktestlib itkvnl itkvnl_algo itknetlib)
foreach(lib itkvcl itkv3p_netlib itktestlib itkvnl itkvnl_algo)
itk_module_target(${lib} NO_INSTALL)
endforeach()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
set( NETLIB_FOUND "YES" )
set( NETLIB_INCLUDE_DIR ${VXL_ROOT_SOURCE_DIR}/v3p/netlib )
set( NETLIB_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/include/vxl/v3p/netlib )
set( NETLIB_LIBRARIES ${VXL_LIB_PREFIX}netlib ${VXL_LIB_PREFIX}v3p_netlib )
set( NETLIB_LIBRARIES ${VXL_LIB_PREFIX}v3p_netlib )
4 changes: 4 additions & 0 deletions Modules/ThirdParty/VNL/src/vxl/v3p/netlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

project( netlib C )

# Incompatible with ITK's License
if(0)
set(netlib_sources
# The "Triangle" program of Jonathan Richard Shewchuk
triangle.c triangle.h
Expand All @@ -13,6 +15,8 @@ vxl_add_library(LIBRARY_NAME ${VXL_LIB_PREFIX}netlib
if(UNIX)
target_link_libraries( ${VXL_LIB_PREFIX}netlib m )
endif()
# Incompatible with ITK's License
endif()

# Allow sources in subdirectories to see the include files.
include_directories(${netlib_SOURCE_DIR})
Expand Down
Loading

0 comments on commit 7f95961

Please sign in to comment.