From 6a2fbe07e7674794a883a7062ce2225781cf5193 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 4 Apr 2011 16:51:17 -0700 Subject: uhd: a few minor changes to get uhd building under mingw or cygwin --- host/lib/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'host/lib') diff --git a/host/lib/CMakeLists.txt b/host/lib/CMakeLists.txt index 8ca7c7dca..268f05df6 100644 --- a/host/lib/CMakeLists.txt +++ b/host/lib/CMakeLists.txt @@ -68,6 +68,14 @@ MACRO(INCLUDE_SUBDIRECTORY subdir) LIST(REMOVE_AT _cmake_binary_dirs 0) ENDMACRO(INCLUDE_SUBDIRECTORY) +######################################################################## +# Cygwin special +######################################################################## +IF(CYGWIN) + ADD_DEFINITIONS(-D__USE_W32_SOCKETS) #boost asio says we need this + LIBUHD_APPEND_LIBS(ws2_32) +ENDIF(CYGWIN) + ######################################################################## # Include subdirectories (different than add) ######################################################################## -- cgit v1.2.3