summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GenEx-TARGET_RUNTIME_DLLS/shared-check.cmake
blob: e19598e14456802c7456b977344f603b20a067ee (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 DLLs:\n")
    foreach(dll IN LISTS expected)
      string(APPEND RunCMake_TEST_FAILED "  ${dll}\n")
    endforeach()
    string(APPEND RunCMake_TEST_FAILED "Actual DLLs:\n")
    foreach(dll IN LISTS actual)
      string(APPEND RunCMake_TEST_FAILED "  ${dll}\n")
    endforeach()
  endif()
  set(RunCMake_TEST_FAILED "${RunCMake_TEST_FAILED}" PARENT_SCOPE)
endfunction()

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