Commit 84ef3de5 authored by Ben Boeckel's avatar Ben Boeckel

Merge branch 'fix-mingw-comp' into 'for/vtk-old'

Fix linker error with MinGW

See merge request third-party/glew!4
parents 474f0400 51140683
......@@ -40,6 +40,12 @@ if (BUILD_SHARED_LIBS)
target_compile_definitions(vtkglew
PRIVATE
GLEW_BUILD)
if(MINGW)
# https://github.com/nigels-com/glew/issues/157
target_link_libraries(vtkglew
PRIVATE
-nostdlib)
endif()
endif ()
else ()
target_compile_definitions(vtkglew
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment