summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/shared-check.cmake
blob: 6b05b4ede9ee238444c6bdf5ab7d9fbe9575c7d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function(check_genex expected actual)
  if(NOT expected STREQUAL actual)
    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 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)
endfunction()

include("${RunCMake_TEST_BINARY_DIR}/dlls.cmake")