diff --git a/CMake/options.cmake b/CMake/options.cmake index 581f2e969..87bd31f74 100644 --- a/CMake/options.cmake +++ b/CMake/options.cmake @@ -132,7 +132,9 @@ endif(OPTION_USE_THREADS AND CMAKE_HAVE_THREADS_LIBRARY) if(OPTION_USE_THREADS AND CMAKE_USE_PTHREADS_INIT) set(HAVE_PTHREAD 1) - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread") + if(NOT APPLE) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread") + endif(NOT APPLE) list(APPEND FLTK_LDLIBS -lpthread) list(APPEND FLTK_CFLAGS -D_THREAD_SAFE -D_REENTRANT) set(FLTK_PTHREADS_FOUND TRUE)