From 11b1425196da577227ca8766c5c6d59664f7581b Mon Sep 17 00:00:00 2001 From: Thijs Wenker Date: Thu, 31 Jul 2014 22:51:23 +0200 Subject: [PATCH] Windows requires ws2_32.lib for LIBOVR 0.4 --- interface/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 7336b55852..d3c204a021 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -258,5 +258,8 @@ else (APPLE) add_definitions(-Dssize_t=long) 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)