CMakeLists.txt
branchstable-2.0
changeset 1048 22b96d39d1a2
parent 1043 44865546c38b
child 1082 94771621792f
equal deleted inserted replaced
1046:c266bc57acc1 1048:22b96d39d1a2
   160         ENDIF(HAVE_MNTENT_H)
   160         ENDIF(HAVE_MNTENT_H)
   161 
   161 
   162         CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
   162         CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
   163         IF(HAVE_PTHREAD_H)
   163         IF(HAVE_PTHREAD_H)
   164             SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
   164             SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
   165         ELSE(HAVE_PTHREAD_H)
       
   166             ADD_DEFINITIONS(-DPHYSFS_NO_PTHREADS_SUPPORT=1)
       
   167         ENDIF(HAVE_PTHREAD_H)
   165         ENDIF(HAVE_PTHREAD_H)
   168     ENDIF(BEOS)
   166     ENDIF(BEOS)
   169 ENDIF(UNIX)
   167 ENDIF(UNIX)
   170 
   168 
   171 IF(WINDOWS)
   169 IF(WINDOWS)
   185 ENDIF(NOT PHYSFS_HAVE_CDROM_SUPPORT)
   183 ENDIF(NOT PHYSFS_HAVE_CDROM_SUPPORT)
   186 
   184 
   187 IF(PHYSFS_HAVE_THREAD_SUPPORT)
   185 IF(PHYSFS_HAVE_THREAD_SUPPORT)
   188     ADD_DEFINITIONS(-D_REENTRANT -D_THREAD_SAFE)
   186     ADD_DEFINITIONS(-D_REENTRANT -D_THREAD_SAFE)
   189 ELSE(PHYSFS_HAVE_THREAD_SUPPORT)
   187 ELSE(PHYSFS_HAVE_THREAD_SUPPORT)
       
   188     ADD_DEFINITIONS(-DPHYSFS_NO_THREAD_SUPPORT=1)
   190     MESSAGE(WARNING " ***")
   189     MESSAGE(WARNING " ***")
   191     MESSAGE(WARNING " *** There is no thread support in this build!")
   190     MESSAGE(WARNING " *** There is no thread support in this build!")
   192     MESSAGE(WARNING " *** PhysicsFS will NOT be reentrant!")
   191     MESSAGE(WARNING " *** PhysicsFS will NOT be reentrant!")
   193     MESSAGE(WARNING " *** This may be fine, depending on how PhysicsFS is used,")
   192     MESSAGE(WARNING " *** This may be fine, depending on how PhysicsFS is used,")
   194     MESSAGE(WARNING " ***   but is this what you REALLY wanted?")
   193     MESSAGE(WARNING " ***   but is this what you REALLY wanted?")