File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ macro(pybind11_filter_tests LISTNAME)
29
29
set (PYBIND11_FILTER_TESTS_FOUND OFF )
30
30
# Make a list of the test without any extensions, for easier filtering.
31
31
set (_TMP_ACTUAL_LIST "${${LISTNAME} };" ) # enforce ';' at the end to allow matching last item.
32
- string (REGEX REPLACE "\\ .[^.]*;" ";" LIST_WITHOUT_EXTENSIONS "${_TMP_ACTUAL_LIST} " )
32
+ string (REGEX REPLACE "\\ .[^.; ]*;" ";" LIST_WITHOUT_EXTENSIONS "${_TMP_ACTUAL_LIST} " )
33
33
foreach (filename IN LISTS ARG_UNPARSED_ARGUMENTS)
34
34
string (REGEX REPLACE "\\ .[^.]*$" "" filename_no_ext ${filename} )
35
35
# Search in the list without extensions.
@@ -163,8 +163,8 @@ set(PYBIND11_TEST_FILES
163
163
if (PYBIND11_TEST_OVERRIDE)
164
164
# Instead of doing a direct override here, we iterate over the overrides without extension and
165
165
# match them against entries from the PYBIND11_TEST_FILES, anything that not matches goes into the filter list.
166
- string (REGEX REPLACE "\\ .[^.]*;" ";" TEST_OVERRIDE_NO_EXT "${PYBIND11_TEST_OVERRIDE} ;" )
167
- string (REGEX REPLACE "\\ .[^.]*;" ";" TEST_FILES_NO_EXT "${PYBIND11_TEST_FILES} ;" )
166
+ string (REGEX REPLACE "\\ .[^.; ]*;" ";" TEST_OVERRIDE_NO_EXT "${PYBIND11_TEST_OVERRIDE} ;" )
167
+ string (REGEX REPLACE "\\ .[^.; ]*;" ";" TEST_FILES_NO_EXT "${PYBIND11_TEST_FILES} ;" )
168
168
# This allows the override to be done with extensions, preserving backwards compatibility.
169
169
foreach (test_name ${TEST_FILES_NO_EXT} )
170
170
if (NOT ${test_name} IN_LIST TEST_OVERRIDE_NO_EXT
You can’t perform that action at this time.
0 commit comments