link to ws2_32.lib if LibOVR is being linked to

This commit is contained in:
Stephen Birarda 2014-08-12 15:23:12 -07:00
parent 4bf7bbe0df
commit 4dce4c4919
2 changed files with 2 additions and 3 deletions

View file

@ -63,6 +63,8 @@ if (APPLE)
elseif (UNIX)
list(APPEND LIBOVR_LIBRARIES "${UDEV_LIBRARY}" "${XINERAMA_LIBRARY}")
list(APPEND LIBOVR_ARGS_LIST UDEV_LIBRARY XINERAMA_LIBRARY)
elseif (WIN32)
list(APPEND LIBOVR_LIBRARIES ws2_32.lib)
endif ()
include(FindPackageHandleStandardArgs)

View file

@ -201,9 +201,6 @@ else (APPLE)
add_definitions(-DGLEW_STATIC)
target_link_libraries(${TARGET_NAME} "${GLEW_LIBRARIES}" wsock32.lib opengl32.lib)
if (LIBOVR_FOUND)
target_link_libraries(${TARGET_NAME} ws2_32.lib)
endif()
endif()
endif (APPLE)