forked from Lainports/freebsd-ports
Doesn't build on 12 with PLUGINS=on due to the math/vtk6 failure: https://gitlab.kitware.com/vtk/vtk/issues/17285 It builds with PLUGINS=off. Compared to the original submission, sevaral changes have been made: * Added the PLUGINS option * Fixed the GAMEPAD option * etc. PR: 226239 Submitted by: Neel Chauhan <neel@neelc.org>
20 lines
783 B
CMake
20 lines
783 B
CMake
--- contrib/ShapeLibSupport.cmake.orig 2018-03-16 21:26:02 UTC
|
|
+++ contrib/ShapeLibSupport.cmake
|
|
@@ -4,14 +4,14 @@
|
|
|
|
OPTION( OPTION_USE_SHAPE_LIB "Build with ShapeLib (SHP files support)" OFF )
|
|
if( ${OPTION_USE_SHAPE_LIB} )
|
|
- add_subdirectory(contrib/shapelib-1.3.0)
|
|
- include_directories( ${SHAPELIB_SOURCE_DIR} )
|
|
+ #add_subdirectory(contrib/shapelib-1.3.0)
|
|
+ #include_directories( ${SHAPELIB_SOURCE_DIR} )
|
|
endif()
|
|
|
|
# Link project with shapelib library
|
|
function( target_link_SHAPE_LIB ) # 2 arguments: ARGV0 = project name
|
|
if( ${OPTION_USE_SHAPE_LIB} )
|
|
- target_link_libraries( ${PROJECT_NAME} SHAPELIB )
|
|
+ target_link_libraries( ${PROJECT_NAME} shp )
|
|
set_property( TARGET ${PROJECT_NAME} APPEND PROPERTY COMPILE_DEFINITIONS CC_SHP_SUPPORT )
|
|
endif()
|
|
endfunction()
|