Index: VTK-8.0.0/Filters/StatisticsGnuR/CMakeLists.txt =================================================================== --- VTK-8.0.0.orig/Filters/StatisticsGnuR/CMakeLists.txt +++ VTK-8.0.0/Filters/StatisticsGnuR/CMakeLists.txt @@ -27,6 +27,10 @@ include_directories(${R_INCLUDE_DIR}) add_definitions(-DVTK_BUILDING_FILTERS_STATISTICSGNUR) +# Check for the existance of uintptr_t type and set the HAVE_UINTPTR_T macro +include(CheckTypeSize) +CHECK_TYPE_SIZE(uintptr_t UINTPTR_T) + # Configure the module specific settings into a module configured header. configure_file(${CMAKE_CURRENT_SOURCE_DIR}/vtkFiltersStatisticsGnuRConfigure.h.in ${CMAKE_CURRENT_BINARY_DIR}/vtkFiltersStatisticsGnuRConfigure.h) Index: VTK-8.0.0/Filters/StatisticsGnuR/vtkFiltersStatisticsGnuRConfigure.h.in =================================================================== --- VTK-8.0.0.orig/Filters/StatisticsGnuR/vtkFiltersStatisticsGnuRConfigure.h.in +++ VTK-8.0.0/Filters/StatisticsGnuR/vtkFiltersStatisticsGnuRConfigure.h.in @@ -17,5 +17,6 @@ #define vtkFiltersStatisticsGnuRConfigure_h #define VTK_R_HOME "@R_HOME@" +#cmakedefine HAVE_UINTPTR_T #endif