diff options
| author | Timothy Collett | 2012-07-05 10:47:36 -0400 |
|---|---|---|
| committer | Timothy Collett | 2012-07-05 10:47:36 -0400 |
| commit | d0b2d0750dc2d529a152eba4f3f519f69ff7eab0 (patch) | |
| tree | a1d1018d52dd7fd5a8a432e71755dacf15b74f67 /CMakeLists.txt | |
| parent | f2722ca9ac49f8f13da4ddcfcb0fa47a0eb30454 (diff) | |
| download | clsocket-d0b2d0750dc2d529a152eba4f3f519f69ff7eab0.tar.gz clsocket-d0b2d0750dc2d529a152eba4f3f519f69ff7eab0.tar.bz2 clsocket-d0b2d0750dc2d529a152eba4f3f519f69ff7eab0.tar.xz | |
Re-fix the problems building clsocket on OS X by standardizing on _DARWIN
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
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) |
