diff options
| author | Manolo Gouy <Manolo> | 2015-04-07 09:05:24 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-04-07 09:05:24 +0000 |
| commit | f7ffa787fcf499455f1f4141e1dccbb62f27f673 (patch) | |
| tree | a6e5862f3c88fd9932b88dcb9fcb9e7f65f7749c | |
| parent | dde47cbd6ab12c8b4170ac909992f2c407e0c44d (diff) | |
Don't use -pthread in link commands on Mac OS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CMake/options.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
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) |
