+add_custom_target(tests COMMENT "Recompiling the tests")
+
IF(enable_smpi AND NOT WIN32)
execute_process(COMMAND chmod a=rwx ${CMAKE_BINARY_DIR}/bin/smpicc)
execute_process(COMMAND chmod a=rwx ${CMAKE_BINARY_DIR}/bin/smpicxx)
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()