mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-09 13:50:05 +00:00
WIN32 Glew fixes to CMakeLists.txt
Previously, glew was forced to static linkage on windows, even when dynamic Glew libraries were linked which would result in linker errors. In this change, static glew libraries are detected by looking for the "s" suffix convention on the library (though, maybe this should be handled in the FindGlew module).
This commit is contained in:
parent
c53fc7c71f
commit
ff380188e6
@ -530,10 +530,12 @@ else()
|
||||
endif()
|
||||
|
||||
if (WIN32)
|
||||
add_definitions(
|
||||
# Link against the static version of GLEW.
|
||||
-DGLEW_STATIC
|
||||
)
|
||||
if ("${GLEW_LIBRARY}" MATCHES "glew32s(d|)")
|
||||
# Link against the static version of GLEW
|
||||
add_definitions(
|
||||
-DGLEW_STATIC
|
||||
)
|
||||
endif()
|
||||
|
||||
if (DXSDK_FOUND AND NOT NO_DX)
|
||||
add_definitions(
|
||||
|
Loading…
Reference in New Issue
Block a user