diff --git a/CommonPythonCTest.cmake b/CommonPythonCTest.cmake index dd76edf..0c5b397 100644 --- a/CommonPythonCTest.cmake +++ b/CommonPythonCTest.cmake @@ -17,7 +17,7 @@ set(PYTHON_TEST_OUTPUT_PATH ${PROJECT_BINARY_DIR}/tests/python) file(GLOB_RECURSE TEST_FILES ${CMAKE_CURRENT_SOURCE_DIR} *.py) foreach(FILE ${PYTHON_TEST_EXCLUDE}) - list(REMOVE_ITEM TEST_FILES ${FILE}) + list(REMOVE_ITEM TEST_FILES ${CMAKE_CURRENT_SOURCE_DIR}/${FILE}) endforeach() list(SORT TEST_FILES)