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
This commit is contained in:
parent
dde47cbd6a
commit
f7ffa787fc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user