Permalink
Browse files

don't use -pthread compiler option on MacOS

  • Loading branch information...
1 parent 4b97ce1 commit 99a01b77b2c82b7bcdcd9dbb779594643bc25db8 @Neverlord Neverlord committed Mar 22, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 CMakeLists.txt
View
@@ -166,9 +166,11 @@ set(INCLUDE_DIRS .)
set(LD_DIRS)
set(LD_FLAGS ${CMAKE_LD_LIBS})
-if (UNIX)
+if (APPLE)
+ # -pthread is ignored on MacOSX
+elseif (UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
-endif (UNIX)
+endif ()
if (ENABLE_OPENCL)
find_package(OPENCL REQUIRED)

0 comments on commit 99a01b7

Please sign in to comment.