From 26a60b03891992e6b67d31495a9a948172f94595 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20St=C3=BCrmer?= <michael.stuermer@schaeffler.com>
Date: Wed, 20 Jul 2016 15:21:59 +0200
Subject: [PATCH 1/5] find installed files also if they are prefixed with "./"
 or ".\\":

before, only

install(FILES myfile.exe ...)

was working, now

install(FILES "./myfile.exe" ...)

is working as well.
---
 Source/cmake.cxx | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index cdc1284..5cd6057 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1961,6 +1961,19 @@ cmInstalledFile const* cmake::GetInstalledFile(const std::string& name) const
   std::map<std::string, cmInstalledFile>::const_iterator i =
     this->InstalledFiles.find(name);
 
+  if (i == this->InstalledFiles.end()) {
+    std::list<std::string> prefixes;
+    prefixes.push_back("./");
+    prefixes.push_back(".\\");
+    for (std::list<std::string>::iterator p = prefixes.begin();
+         p != prefixes.end(); ++p) {
+      i = this->InstalledFiles.find(*p + name);
+      if (i != this->InstalledFiles.end()) {
+        break;
+      }
+    }
+  }
+
   if (i != this->InstalledFiles.end()) {
     cmInstalledFile const& file = i->second;
     return &file;
-- 
2.8.0.windows.1

