|
@@ -49,23 +49,23 @@ function(trace_valid_entry trace entry)
|
|
|
json_error("${trace}" "Name is empty: ${entry}")
|
|
json_error("${trace}" "Name is empty: ${entry}")
|
|
|
endif()
|
|
endif()
|
|
|
string(JSON cat GET "${entry}" cat)
|
|
string(JSON cat GET "${entry}" cat)
|
|
|
- set(expected_name "${cat}: ")
|
|
|
|
|
|
|
+ set(expected_name "${cat}")
|
|
|
if (cat STREQUAL "compile")
|
|
if (cat STREQUAL "compile")
|
|
|
string(JSON source GET "${args}" source)
|
|
string(JSON source GET "${args}" source)
|
|
|
- string(APPEND expected_name "${source}")
|
|
|
|
|
|
|
+ string(APPEND expected_name ": ${source}")
|
|
|
elseif (cat STREQUAL "link")
|
|
elseif (cat STREQUAL "link")
|
|
|
string(JSON target GET "${args}" target)
|
|
string(JSON target GET "${args}" target)
|
|
|
- string(APPEND expected_name "${target}")
|
|
|
|
|
|
|
+ string(APPEND expected_name ": ${target}")
|
|
|
elseif (cat STREQUAL "install")
|
|
elseif (cat STREQUAL "install")
|
|
|
string(JSON workingDir GET "${args}" workingDir)
|
|
string(JSON workingDir GET "${args}" workingDir)
|
|
|
cmake_path(GET workingDir FILENAME lastDirName)
|
|
cmake_path(GET workingDir FILENAME lastDirName)
|
|
|
- string(APPEND expected_name "${lastDirName}")
|
|
|
|
|
|
|
+ string(APPEND expected_name ": ${lastDirName}")
|
|
|
elseif (cat STREQUAL "custom")
|
|
elseif (cat STREQUAL "custom")
|
|
|
string(JSON command GET "${args}" command)
|
|
string(JSON command GET "${args}" command)
|
|
|
- string(APPEND expected_name "${command}")
|
|
|
|
|
|
|
+ string(APPEND expected_name ": ${command}")
|
|
|
elseif (cat STREQUAL "test")
|
|
elseif (cat STREQUAL "test")
|
|
|
string(JSON testName GET "${args}" testName)
|
|
string(JSON testName GET "${args}" testName)
|
|
|
- string(APPEND expected_name "${testName}")
|
|
|
|
|
|
|
+ string(APPEND expected_name ": ${testName}")
|
|
|
endif()
|
|
endif()
|
|
|
if (NOT name STREQUAL expected_name)
|
|
if (NOT name STREQUAL expected_name)
|
|
|
json_error("${trace}" "Invalid name: ${name}")
|
|
json_error("${trace}" "Invalid name: ${name}")
|