diff options
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 40d1403c..1aa0c4b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,8 +163,12 @@ set(ATOMIC_OPS_LIBS "") # TODO: Assume libatomic_ops library is not needed. # Thread support detection. if (CMAKE_USE_PTHREADS_INIT) - set(SRC ${SRC} gc_dlopen.c pthread_start.c pthread_stop_world.c - pthread_support.c) + set(SRC ${SRC} gc_dlopen.c) + if (CYGWIN OR MSYS) + set(SRC ${SRC} win32_threads.c) + else() + set(SRC ${SRC} pthread_start.c pthread_stop_world.c pthread_support.c) + endif() if (HOST MATCHES .*-.*-hpux10.*) message(FATAL_ERROR "HP/UX 10 POSIX threads are not supported.") endif() @@ -203,9 +207,6 @@ if (CMAKE_USE_PTHREADS_INIT) if (enable_sigrt_signals) add_definitions("-DGC_USESIGRT_SIGNALS") endif() - if (CYGWIN OR MSYS) - set(SRC ${SRC} win32_threads.c) - endif() elseif (CMAKE_USE_WIN32_THREADS_INIT) add_definitions("-DGC_THREADS") if (enable_parallel_mark) |