From d0b2d0750dc2d529a152eba4f3f519f69ff7eab0 Mon Sep 17 00:00:00 2001 From: Timothy Collett Date: Thu, 5 Jul 2012 10:47:36 -0400 Subject: Re-fix the problems building clsocket on OS X by standardizing on _DARWIN --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index dc30415..0795081 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,13 +29,15 @@ LIST(APPEND CLSOCKET_SOURCES ${CLSOCKET_HEADERS}) # OS and compiler checks. if(UNIX) + # linux / normal unix + add_definitions(-D_LINUX) if(CYGWIN) # Special Cygwin stuff here elseif(APPLE) # Special Apple stuff here + remove_definitions(-D_LINUX) + add_definitions(-D_DARWIN) endif() - # linux / normal unix - add_definitions(-D_LINUX) elseif(WIN32) add_definitions(-DWIN32) SET(PROJECT_LIBS Ws2_32.lib) -- cgit v1.2.1