summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-27 16:58:02 (GMT)
committerBrad King <brad.king@kitware.com>2021-10-27 16:58:02 (GMT)
commitefc6c23a47e456b066089ed6f8fd11a1ca4396d3 (patch)
treedb943cd15d492038d8286484e857c1e77a148be7 /Source/cmLocalGenerator.cxx
parentaf6414c6c5e9767f0f997523af8fe1e5a71f6093 (diff)
downloadCMake-efc6c23a47e456b066089ed6f8fd11a1ca4396d3.zip
CMake-efc6c23a47e456b066089ed6f8fd11a1ca4396d3.tar.gz
CMake-efc6c23a47e456b066089ed6f8fd11a1ca4396d3.tar.bz2
bootstrap: Do not declare cmSystemTools functions that are not implemented
Convert runtime error messages into compile-time errors.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 95c9eea..3a4c386 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2831,7 +2831,10 @@ void cmLocalGenerator::IncludeFileInUnitySources(
unity_file << "/* " << pathToHash << " */\n"
<< "#undef " << *uniqueIdName << "\n"
<< "#define " << *uniqueIdName << " unity_"
- << cmSystemTools::ComputeStringMD5(pathToHash) << "\n";
+#ifndef CMAKE_BOOTSTRAP
+ << cmSystemTools::ComputeStringMD5(pathToHash) << "\n"
+#endif
+ ;
}
if (beforeInclude) {