mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 00:44:38 +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)
|
elseif (UNIX)
|
||||||
list(APPEND LIBOVR_LIBRARIES "${UDEV_LIBRARY}" "${XINERAMA_LIBRARY}")
|
list(APPEND LIBOVR_LIBRARIES "${UDEV_LIBRARY}" "${XINERAMA_LIBRARY}")
|
||||||
list(APPEND LIBOVR_ARGS_LIST UDEV_LIBRARY XINERAMA_LIBRARY)
|
list(APPEND LIBOVR_ARGS_LIST UDEV_LIBRARY XINERAMA_LIBRARY)
|
||||||
|
elseif (WIN32)
|
||||||
|
list(APPEND LIBOVR_LIBRARIES ws2_32.lib)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
|
|
|
@ -201,9 +201,6 @@ else (APPLE)
|
||||||
add_definitions(-DGLEW_STATIC)
|
add_definitions(-DGLEW_STATIC)
|
||||||
|
|
||||||
target_link_libraries(${TARGET_NAME} "${GLEW_LIBRARIES}" wsock32.lib opengl32.lib)
|
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()
|
||||||
endif (APPLE)
|
endif (APPLE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue