Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
CMake project should enable pthreads for Mac OS X by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 13, 2013
1 parent d47c4f4 commit fb9d477
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Expand Up @@ -104,6 +104,12 @@ else()
set(UNIX_SYS OFF)
endif(UNIX AND NOT APPLE)

if(UNIX OR APPLE)
set(UNIX_OR_MAC_SYS ON)
else()
set(UNIX_OR_MAC_SYS OFF)
endif(UNIX OR APPLE)

# Default option knobs
if(APPLE OR ARCH_64)
set(OPT_DEF_SSEMATH ON)
Expand Down Expand Up @@ -190,7 +196,7 @@ dep_option(FUSIONSOUND_SHARED "Dynamically load fusionsound audio support" ON "
set_option(VIDEO_DUMMY "Use dummy video driver" ON)
set_option(VIDEO_OPENGL "Include OpenGL support" ON)
set_option(VIDEO_OPENGLES "Include OpenGL ES support" ON)
set_option(PTHREADS "Use POSIX threads for multi-threading" ${UNIX_SYS})
set_option(PTHREADS "Use POSIX threads for multi-threading" ${UNIX_OR_MAC_SYS})
dep_option(PTHREADS_SEM "Use pthread semaphores" ON "PTHREADS" OFF)
set_option(SDL_DLOPEN "Use dlopen for shared object loading" ON)
set_option(OSS "Support the OSS audio API" ${UNIX_SYS})
Expand Down

0 comments on commit fb9d477

Please sign in to comment.