Build Errors on Windows, VS 2017
I'm getting errors building VTK on Windows 10 in Visual Studio 2017. I get several copies of error similar to this:
8>CUSTOMBUILD : CMake error : Could not open file for write in copy operation C:/Build/maptk-sbnc/external/fletch-build/build/src/VTK-build/C:/Build/maptk-sbnc/external/fletch-build/install/lib/cmake/vtk-8.2/Modules/vtkkwiml.cmake.tmp
8>CUSTOMBUILD : CMake error : : System Error: Invalid argument
8>CMake Error at CMake/vtkModuleMacros.cmake:337 (configure_file):
8> configure_file Problem configuring file
8>Call Stack (most recent call first):
8> Utilities/KWIML/CMakeLists.txt:5 (vtk_module_export_info)
Note VTK is being built as part of Fletch, which specifies a custom install directory. It appears to be caused by changes in 2ef6c770. Apparently replacing lib
with ${CMAKE_INSTALL_LIBDIR}
is problematic in cases where ${CMAKE_INSTALL_LIBDIR}
is an absolute path (at least on Windows).