mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 09:43:01 +02:00
link to ws2_32.lib if LibOVR is being linked to
This commit is contained in:
parent
4bf7bbe0df
commit
4dce4c4919
2 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue