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

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

Fix linker error with MinGW

See merge request !4
parents 474f0400 51140683
...@@ -40,6 +40,12 @@ if (BUILD_SHARED_LIBS) ...@@ -40,6 +40,12 @@ if (BUILD_SHARED_LIBS)
target_compile_definitions(vtkglew target_compile_definitions(vtkglew
PRIVATE PRIVATE
GLEW_BUILD) GLEW_BUILD)
if(MINGW)
# https://github.com/nigels-com/glew/issues/157
target_link_libraries(vtkglew
PRIVATE
-nostdlib)
endif()
endif () endif ()
else () else ()
target_compile_definitions(vtkglew 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