Minor changes for bookeeping -- increased the NH chains. Still issue with not conserv...
[gromacs/rigid-bodies.git] / cmake / ThreadMPI.cmake
blob19b89f2460e982083afe69b9699f9b79c15a9408
3 include(CheckIncludeFiles)
5 #option(THREAD_PTHREADS "Use posix threads" ON)
7 include(FindThreads)
8 if (CMAKE_USE_PTHREADS_INIT)
9     check_include_files(pthread.h    HAVE_PTHREAD_H)
10     #set(THREAD_PTHREADS 1)
11     add_definitions(-DTHREAD_PTHREADS)
12     set(THREAD_MPI_SRC thread_mpi/threads.c thread_mpi/tmpi_init.c 
13                        thread_mpi/comm.c thread_mpi/send_recv.c 
14                        thread_mpi/multicast.c)
15     set(THREAD_LIB ${CMAKE_THREAD_LIBS_INIT})
16 else (CMAKE_USE_PTHREADS_INIT)
17     if (CMAKE_USE_WIN32_THREADS_INIT)
18         set(THREAD_WINDOWS 1)
19         add_definitions(-DTHREAD_WINDOWS)
20         set(THREAD_MPI_SRC thread_mpi/threads.c thread_mpi/tmpi_init.c 
21                            thread_mpi/comm.c thread_mpi/send_recv.c 
22                            thread_mpi/multicast.c)
23         set(THREAD_LIBRARY )
24     endif (CMAKE_USE_WIN32_THREADS_INIT)
25 endif (CMAKE_USE_PTHREADS_INIT)