Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add sources with win32 for pthread.
[simgrid.git] / buildtools / Cmake / DefinePackages.cmake
index 2ea763a..15421ea 100755 (executable)
@@ -459,7 +459,7 @@ examples/amok/saturate/saturate.xml
 
 ### depend of some variables setted upper
 # -->CONTEXT_THREADS
-if(${CONTEXT_THREADS})
+if(${CONTEXT_THREADS} OR WIN32)
        set(SURF_SRC
                ${SURF_SRC}
                src/xbt/xbt_os_thread.c
@@ -469,7 +469,7 @@ if(${CONTEXT_THREADS})
                ${EXTRA_DIST}
                src/simix/smx_context_sysv.c
        )
-else(${CONTEXT_THREADS})
+else(${CONTEXT_THREADS} OR WIN32)
        set(SURF_SRC
                ${SURF_SRC}
                src/simix/smx_context_sysv.c
@@ -479,7 +479,7 @@ else(${CONTEXT_THREADS})
                src/xbt/xbt_os_thread.c
                src/simix/smx_context_thread.c
        )
-endif(${CONTEXT_THREADS})
+endif(${CONTEXT_THREADS} OR WIN32)
 
 # -->HAVE_GTNETS
 if(HAVE_GTNETS)
@@ -513,12 +513,12 @@ set(simgrid_sources
        ${AMOK_SRC}
 )
 
-if(enable_model-checking AND HAVE_MMAP)
+if(HAVE_MC)
        set(simgrid_sources
-               ${simgrid_source}
+               ${simgrid_sources}
                ${MC_SRC}
                )
-endif(enable_model-checking AND HAVE_MMAP)
+endif(HAVE_MC)
 
 ### Gras Lib sources
 set(gras_sources