Browse Source

Makefile: List codegen target in help

This was left out of commit 197cb419d1 (add_custom_command: Add
CODEGEN support, 2024-05-27, v3.31.0-rc1~394^2).

Fixes: #26545
Brad King 10 tháng trước cách đây
mục cha
commit
45726d93a8
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      Source/cmGlobalUnixMakefileGenerator3.cxx

+ 3 - 0
Source/cmGlobalUnixMakefileGenerator3.cxx

@@ -951,6 +951,9 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule(
   if (!this->GlobalSettingIsOn("CMAKE_SUPPRESS_REGENERATION")) {
     lg->AppendEcho(commands, "... depend");
   }
+  if (this->CheckCMP0171()) {
+    lg->AppendEcho(commands, "... codegen");
+  }
 
   // Keep track of targets already listed.
   std::set<std::string> emittedTargets;