File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ endfunction(add_spec)
70
70
71
71
# Discover Specs
72
72
function (discover_specs spec_folder )
73
- file (GLOB_RECURSE specs ${spec_folder} /*_spec.cpp )
73
+ file (GLOB_RECURSE specs RELATIVE ${spec_folder} ${spec_folder} /*_spec.cpp )
74
74
75
75
if (${ARGC} GREATER 1 )
76
76
set (output_junit ${ARGV1} )
@@ -79,8 +79,11 @@ function(discover_specs spec_folder)
79
79
endif ()
80
80
81
81
foreach (spec IN LISTS specs )
82
+ cmake_path (GET spec STEM spec_name )
83
+ cmake_path (GET spec PARENT_PATH spec_folder )
84
+
82
85
if (${output_junit} )
83
- add_spec (${spec} "--output-junit;${CMAKE_CURRENT_BINARY_DIR} /results/${spec_name} .xml" )
86
+ add_spec (${spec} "--output-junit;${CMAKE_CURRENT_BINARY_DIR} /results/${spec_folder} / ${ spec_name} .xml" )
84
87
else ()
85
88
add_spec (${spec} "" )
86
89
endif ()
You can’t perform that action at this time.
0 commit comments