0001-fix-cmake-Fix-when-multiple-.NET-packages-are-instal.patch 1.2 KB

123456789101112131415161718192021222324252627
  1. From 07b603fa2fc4a3b980ac39ede97e221549cffdb1 Mon Sep 17 00:00:00 2001
  2. From: KokaKiwi <kokakiwi+git@kokakiwi.net>
  3. Date: Tue, 26 Sep 2023 14:52:25 +0200
  4. Subject: [PATCH 1/2] fix(cmake): Fix when multiple .NET packages are installed
  5. ---
  6. cmake/modules/FindCoreClrEmbed.cmake | 3 ++-
  7. 1 file changed, 2 insertions(+), 1 deletion(-)
  8. diff --git a/cmake/modules/FindCoreClrEmbed.cmake b/cmake/modules/FindCoreClrEmbed.cmake
  9. index 9bcb6738..d18085e0 100644
  10. --- a/cmake/modules/FindCoreClrEmbed.cmake
  11. +++ b/cmake/modules/FindCoreClrEmbed.cmake
  12. @@ -49,7 +49,8 @@ endif()
  13. set(CoreClrEmbed_ROOT_PATH "${CORECLR_RUNTIME_ROOT_PATH}")
  14. -file(GLOB _CORECLR_HOST_ARCH_PATH "${CORECLR_RUNTIME_ROOT_PATH}/packs/Microsoft.NETCore.App.Host.*-${CORECLR_SUBARCH}")
  15. +file(GLOB _CORECLR_HOST_ARCH_PATH_LIST "${CORECLR_RUNTIME_ROOT_PATH}/packs/Microsoft.NETCore.App.Host.*-${CORECLR_SUBARCH}")
  16. +list(POP_FRONT _CORECLR_HOST_ARCH_PATH_LIST _CORECLR_HOST_ARCH_PATH)
  17. if (_CORECLR_HOST_ARCH_PATH)
  18. get_filename_component(_CORECLR_HOST_ARCH_FILENAME ${_CORECLR_HOST_ARCH_PATH} NAME)
  19. string(REPLACE "Microsoft.NETCore.App.Host." "" _CORECLR_COMPUTED_ARCH "${_CORECLR_HOST_ARCH_FILENAME}")
  20. --
  21. 2.43.0