Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
am I stupid?!
[simgrid.git] / tools / cmake / Tests.cmake
index 66c1086..d0200dd 100644 (file)
@@ -73,7 +73,12 @@ MACRO(SET_TESH_PROPERTIES NAME FACTORIES)
     LIST(REMOVE_AT ARGR 0)
   ENDFOREACH()
   FOREACH(FACTORY ${FACTORIES})
-    set_tests_properties("${NAME}-${FACTORY}" PROPERTIES ${ARGR})
+    if ((${FACTORY} STREQUAL "thread" ) OR #¬†Always available, thanks to C++11 threads
+        (${FACTORY} STREQUAL "boost" AND HAVE_BOOST_CONTEXTS) OR
+        (${FACTORY} STREQUAL "raw" AND HAVE_RAW_CONTEXTS) OR
+        (${FACTORY} STREQUAL "ucontext" AND HAVE_UCONTEXT_CONTEXTS))
+      set_tests_properties("${NAME}-${FACTORY}" PROPERTIES ${ARGR})
+    endif()
   ENDFOREACH()
 ENDMACRO()