File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -202,12 +202,17 @@ add_subdirectory(docs)
202202set (CTEST_CONFIGURATION_TYPE "${JOB_BUILD_CONFIGURATION} " )
203203# (must be placed *before* any add_subdirectory, cmake bug ?)
204204enable_testing ()
205+
206+ if (CMAKE_VERSION VERSION_GREATER 3.21.4)
207+ set (ctest_args )
208+ list (APPEND ctest_args --output-junit ctest-results.xml)
209+ endif (CMAKE_VERSION VERSION_GREATER 3.21.4 )
205210if (CMAKE_CONFIGURATION_TYPES )
206211 add_custom_target (check COMMAND
207- ${CMAKE_CTEST_COMMAND} -T test -C $<CONFIGURATION >)
212+ ${CMAKE_CTEST_COMMAND} ${ctest_args} -T test -C $<CONFIGURATION >)
208213else (CMAKE_CONFIGURATION_TYPES )
209214 add_custom_target (check COMMAND
210- ${CMAKE_CTEST_COMMAND} -T test )
215+ ${CMAKE_CTEST_COMMAND} ${ctest_args} -T test )
211216endif (CMAKE_CONFIGURATION_TYPES )
212217
213218add_subdirectory (include )
You can’t perform that action at this time.
0 commit comments