From 28919a57a4ab98e13465e8c31158fecc6239a307 Mon Sep 17 00:00:00 2001 From: Ruben D Date: Sat, 30 Dec 2017 16:58:52 +0100 Subject: [PATCH] Fix testing whether tests exist on older CMake The string equality works on the 3.6 but not on 3.5. This works on 3.5, so I hope it also works on 3.6 (but I don't have that computer with me right now). --- cmake/CuraTests.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CuraTests.cmake b/cmake/CuraTests.cmake index 3cb5a705b3..f93313e39a 100644 --- a/cmake/CuraTests.cmake +++ b/cmake/CuraTests.cmake @@ -29,7 +29,7 @@ function(cura_add_test) endif() get_test_property(${_NAME} ENVIRONMENT test_exists) #Find out if the test exists by getting a property from it that always exists (such as ENVIRONMENT because we set that ourselves). - if (${test_exists} EQUAL "NOTFOUND") + if (NOT ${test_exists}) add_test( NAME ${_NAME} COMMAND ${PYTHON_EXECUTABLE} -m pytest --junitxml=${CMAKE_BINARY_DIR}/junit-${_NAME}.xml ${_DIRECTORY}