From 1533e8728402717ea2c0df676aeef4f328aa32de Mon Sep 17 00:00:00 2001 From: navarrop Date: Wed, 1 Dec 2010 15:25:59 +0000 Subject: [PATCH] Ensure compatibility with cmake v2.6 git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8814 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- buildtools/Cmake/MakeExeLib.cmake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/buildtools/Cmake/MakeExeLib.cmake b/buildtools/Cmake/MakeExeLib.cmake index e0b96c8483..bc3b256bf3 100644 --- a/buildtools/Cmake/MakeExeLib.cmake +++ b/buildtools/Cmake/MakeExeLib.cmake @@ -63,10 +63,11 @@ endif(HAVE_POSIX_GETTIME) # GRAS_DEP (and is thus probably invalid). # My guess is that pthread is never true [Mt] # FIXME: KILLME if we get a working windows with that? -if(pthread AND (with_context MATCHES windows)) +if(with_context MATCHES windows) +if(pthread) SET(GRAS_DEP "msg") -endif(pthread AND (with_context MATCHES windows)) - +endif(pthread) +endif(with_context MATCHES windows) target_link_libraries(gras ${GRAS_DEP}) # Compute the dependencies of SimGrid -- 2.20.1