File 0001-Fix-CMAKE_LINUX_DISTRO-quoting.patch of Package ns3

From e4b651c2466d1e8d26160fce56e6d283a023b276 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Thu, 1 Sep 2022 17:39:52 +0200
Subject: [PATCH] Fix CMAKE_LINUX_DISTRO quoting

---
 build-support/macros-and-definitions.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-support/macros-and-definitions.cmake b/build-support/macros-and-definitions.cmake
index 304ccdd..7bd13dd 100644
--- a/build-support/macros-and-definitions.cmake
+++ b/build-support/macros-and-definitions.cmake
@@ -43,7 +43,7 @@ include(${PROJECT_SOURCE_DIR}/build-support/3rd-party/colored-messages.cmake)
 # WSLv1 doesn't support tap features
 if(EXISTS "/proc/version")
   file(READ "/proc/version" CMAKE_LINUX_DISTRO)
-  string(FIND ${CMAKE_LINUX_DISTRO} "Microsoft" res)
+  string(FIND "${CMAKE_LINUX_DISTRO}" "Microsoft" res)
   if(res EQUAL -1)
     set(WSLv1 False)
   else()
-- 
2.37.1

openSUSE Build Service is sponsored by