mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Add a feature to parse snippets into a trace file compatible with the Google Trace Event Format. Fixes: #26674
12 lines
317 B
CMake
12 lines
317 B
CMake
include(${CMAKE_CURRENT_LIST_DIR}/json.cmake)
|
|
|
|
if (NOT IS_DIRECTORY "${v1}/data/trace")
|
|
add_error("Trace directory ${v1}/data/trace does not exist.")
|
|
endif()
|
|
|
|
file(GLOB trace_files ${v1}/data/trace/*)
|
|
list(LENGTH trace_files num)
|
|
if (NOT ${num} EQUAL 1)
|
|
add_error("Found ${num} trace files, expected 1.")
|
|
endif()
|