mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 15:10:20 -06:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user