VTK 8.1.0 does not compile with VC++/Visual Studio 2017 under Windows 7
The following snippet from ${VTK_SOURCE_DIR}/Utilities/KWSys/vtksys/CMakeLists.txt, line 889 and below:
IF(COMMAND TARGET_INCLUDE_DIRECTORIES) TARGET_INCLUDE_DIRECTORIES(${KWSYS_TARGET_INTERFACE} INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>) IF(KWSYS_INSTALL_INCLUDE_DIR) TARGET_INCLUDE_DIRECTORIES(${KWSYS_TARGET_INTERFACE} INTERFACE $<INSTALL_INTERFACE:${KWSYS_INSTALL_INCLUDE_DIR}>) ENDIF() ENDIF()
results in the following lines in ${VTK_BINARY_DIR}/VTKTargets.cmake on my computer:
... set_target_properties(vtksys PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "I:/Libs/VTK-8.1.0/binaries/Utilities/KWSys/vtksys" )
which interferes with MSVC system include directories.
VTK 8.0.1 does not have this issue.