VTK_USE_OPENGL_DELAYED_LOAD=TRUE causes windows build to fail
Tried to build vtk master at commit 2eb55b05 with VTK_USE_OPENGL_DELAYED_LOAD=TRUE
This caused cmake to fail with the following messages:
CMake Error at CMake/vtkModule.cmake:1372 (target_link_libraries):
INTERFACE library can only be used with the INTERFACE keyword of
target_link_libraries
Call Stack (most recent call first):
Utilities/OpenGL/CMakeLists.txt:53 (vtk_module_link)
CMake Error at CMake/vtkModule.cmake:1407 (target_link_options):
target_link_options may only set INTERFACE properties on INTERFACE targets
Call Stack (most recent call first):
Utilities/OpenGL/CMakeLists.txt:56 (vtk_module_link_options)
Dependencies: python 3.7.3, Qt 5.12.3, cmake 3.14.2, compiler: Visual Studio 2017 cmake flags:
"-DVTK_USE_OPENGL_DELAYED_LOAD=TRUE" ^
"-DBUILD_SHARED_LIBS=TRUE" ^
"-DBUILD_EXAMPLES=TRUE" ^
"-DBUILD_TESTING=TRUE" ^
"-DVTK_WRAP_PYTHON=TRUE" ^
"-DVTK_PYTHON_VERSION=3" ^
"-DVTK_Group_Imaging=ON" ^
"-DVTK_Group_Views=ON" ^
"-DVTK_Group_Qt=ON" ^
"-DVTK_QT_VERSION:STRING=5" ^
"-DQT_QMAKE_EXECUTABLE=%QMAKEDIR%/qmake" ^
"-DModule_vtkGUISupportQt=ON" ^
"-DModule_vtkGUISupportQtOpenGL=ON" ^
"-DModule_vtkRenderingQt=ON" ^
"-DModule_vtkViewsQt=ON"
Switching to VTK_USE_OPENGL_DELAYED_LOAD=FALSE
makes the build succeed, but we need the delayed loading...