File tree 1 file changed +5
-2
lines changed 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ function(catch_discover_tests_impl)
37
37
set (output_suffix ${_TEST_OUTPUT_SUFFIX} )
38
38
set (dl_paths ${_TEST_DL_PATHS} )
39
39
set (dl_framework_paths ${_TEST_DL_FRAMEWORK_PATHS} )
40
+ set (environment_modifications "" )
40
41
set (script)
41
42
set (suite)
42
43
set (tests)
@@ -57,7 +58,9 @@ function(catch_discover_tests_impl)
57
58
endif ()
58
59
59
60
if (dl_paths)
60
- cmake_path(CONVERT "${dl_paths} " TO_NATIVE_PATH_LIST paths )
61
+ cmake_path(CONVERT "$ENV{${dl_paths_variable_name} }" TO_NATIVE_PATH_LIST env_dl_paths)
62
+ list (PREPEND env_dl_paths "${dl_paths} " )
63
+ cmake_path(CONVERT "${env_dl_paths} " TO_NATIVE_PATH_LIST paths )
61
64
set (ENV{${dl_paths_variable_name} } "${paths} " )
62
65
endif ()
63
66
@@ -123,7 +126,7 @@ function(catch_discover_tests_impl)
123
126
if (dl_paths)
124
127
foreach (path ${dl_paths} )
125
128
cmake_path(NATIVE_PATH path native_path)
126
- list (APPEND environment_modifications "${dl_paths_variable_name} =path_list_prepend:${native_path} " )
129
+ list (PREPEND environment_modifications "${dl_paths_variable_name} =path_list_prepend:${native_path} " )
127
130
endforeach ()
128
131
endif ()
129
132
You can’t perform that action at this time.
0 commit comments