CMakeLists.txt
branchstable-2.0
changeset 1048 22b96d39d1a2
parent 1043 44865546c38b
child 1082 94771621792f
--- a/CMakeLists.txt	Wed Feb 03 22:50:07 2010 -0500
+++ b/CMakeLists.txt	Wed Feb 03 23:14:11 2010 -0500
@@ -162,8 +162,6 @@
         CHECK_INCLUDE_FILE(pthread.h HAVE_PTHREAD_H)
         IF(HAVE_PTHREAD_H)
             SET(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
-        ELSE(HAVE_PTHREAD_H)
-            ADD_DEFINITIONS(-DPHYSFS_NO_PTHREADS_SUPPORT=1)
         ENDIF(HAVE_PTHREAD_H)
     ENDIF(BEOS)
 ENDIF(UNIX)
@@ -187,6 +185,7 @@
 IF(PHYSFS_HAVE_THREAD_SUPPORT)
     ADD_DEFINITIONS(-D_REENTRANT -D_THREAD_SAFE)
 ELSE(PHYSFS_HAVE_THREAD_SUPPORT)
+    ADD_DEFINITIONS(-DPHYSFS_NO_THREAD_SUPPORT=1)
     MESSAGE(WARNING " ***")
     MESSAGE(WARNING " *** There is no thread support in this build!")
     MESSAGE(WARNING " *** PhysicsFS will NOT be reentrant!")