TARGET_RUNTIME_DLLS: minor refactoring of shared-check.cmake

Renamed variables and text which mentions dlls to items, since
we can use this check also for testing the directories.
This commit is contained in:
Alexander Neundorf
2023-02-22 23:34:01 +01:00
parent 2ce3d62ffb
commit aa68de0a27

View File

@@ -1,12 +1,12 @@
function(check_genex expected actual)
if(NOT expected STREQUAL actual)
string(APPEND RunCMake_TEST_FAILED "Expected DLLs:\n")
foreach(dll IN LISTS expected)
string(APPEND RunCMake_TEST_FAILED " ${dll}\n")
string(APPEND RunCMake_TEST_FAILED "Expected items:\n")
foreach(item IN LISTS expected)
string(APPEND RunCMake_TEST_FAILED " ${item}\n")
endforeach()
string(APPEND RunCMake_TEST_FAILED "Actual DLLs:\n")
foreach(dll IN LISTS actual)
string(APPEND RunCMake_TEST_FAILED " ${dll}\n")
string(APPEND RunCMake_TEST_FAILED "Actual items:\n")
foreach(item IN LISTS actual)
string(APPEND RunCMake_TEST_FAILED " ${item}\n")
endforeach()
endif()
set(RunCMake_TEST_FAILED "${RunCMake_TEST_FAILED}" PARENT_SCOPE)