From 5b1b3ede41387fa8f4dcf90592cebf12b314921a Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Fri, 11 Jan 2019 21:04:00 +0100 Subject: [PATCH] am I stupid?! You only had one job: only activate the existing tests. --- tools/cmake/Tests.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/cmake/Tests.cmake b/tools/cmake/Tests.cmake index 66c10869f5..d0200dddf9 100644 --- a/tools/cmake/Tests.cmake +++ b/tools/cmake/Tests.cmake @@ -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() -- 2.20.1