Commit 99a01b77 authored by Dominik Charousset's avatar Dominik Charousset

don't use -pthread compiler option on MacOS

parent 4b97ce11
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment