Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix memory leaks
[simgrid.git] / buildtools / Cmake / MakeExeLib.cmake
index 12e431e..31e5286 100644 (file)
@@ -90,9 +90,9 @@ if(HAVE_RUBY)
 endif(HAVE_RUBY)
 
 if(pthread)
-       if(with_context MATCHES pthread)
+       if(${CONTEXT_THREADS})
                SET(SIMGRID_DEP "${SIMGRID_DEP} -lpthread")
-       endif(with_context MATCHES pthread)     
+       endif(${CONTEXT_THREADS})       
 endif(pthread)
 
 if(HAVE_LUA)