Commit 51140683 authored by Boris Basic's avatar Boris Basic
Browse files

Fix linker error with MinGW

parent 474f0400
......@@ -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