Skip to content

Commit

Permalink
Don't search for pthreads on Mac OS X. It doesn't need it. CMake bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 9, 2007
1 parent dbd240d commit 77fce17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Expand Up @@ -346,7 +346,10 @@ ENDIF(MOJOSETUP_URL_FTP)
IF(MOJOSETUP_NEED_LIBFETCH)
SET(OPTIONAL_SRCS ${OPTIONAL_SRCS} ${LIBFETCH_SRCS})
# Had to spin up some threads in libfetch...lame.
INCLUDE(FindThreads)
# !!! FIXME: CMake will do -lpthread on Mac OS X, but it doesn't need it.
IF(NOT MACOSX)
FIND_PACKAGE(Threads)
ENDIF(NOT MACOSX)
SET(OPTIONAL_LIBS ${OPTIONAL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
ENDIF(MOJOSETUP_NEED_LIBFETCH)

Expand Down

0 comments on commit 77fce17

Please sign in to comment.