summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.h
diff options
context:
space:
mode:
authorGeoff Viola <geoffrey.viola@asirobots.com>2016-05-05 04:49:27 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-06 12:21:05 (GMT)
commit5e4287131bc53824eac949dcc56a4cee9f6f907d (patch)
tree6dc819dfd41d4d80688fbd4bcb5764571514bc81 /Source/cmLocalGenerator.h
parent8d7ef6a8b02f2fca4ccb9aaad71ca0d2235ce8a6 (diff)
downloadCMake-5e4287131bc53824eac949dcc56a4cee9f6f907d.zip
CMake-5e4287131bc53824eac949dcc56a4cee9f6f907d.tar.gz
CMake-5e4287131bc53824eac949dcc56a4cee9f6f907d.tar.bz2
GHS: Shorten long object paths with duplicate source names
Detect when the resulting object path is too long and compute an alternative name using a hash.
Diffstat (limited to 'Source/cmLocalGenerator.h')
-rw-r--r--Source/cmLocalGenerator.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
index 0bad0d6..33db68c 100644
--- a/Source/cmLocalGenerator.h
+++ b/Source/cmLocalGenerator.h
@@ -404,4 +404,10 @@ private:
void ComputeObjectMaxPath();
};
+#if defined(CMAKE_BUILD_WITH_CMAKE)
+bool cmLocalGeneratorCheckObjectName(std::string &objName,
+ std::string::size_type dir_len,
+ std::string::size_type max_total_len);
+#endif
+
#endif