mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
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).
This commit is contained in:
parent
719bd5a707
commit
28919a57a4
1 changed files with 1 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue