Ver código fonte

cmGlobalGeneratorFactory: Provide complete cmGlobalGenerator to deleter

The libc++ `unique_ptr` implementation requires this since C++23.

Fixes: #25388
Brad King 2 anos atrás
pai
commit
a0fabc4769
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      Source/cmGlobalGeneratorFactory.h

+ 1 - 1
Source/cmGlobalGeneratorFactory.h

@@ -5,6 +5,7 @@
 #include "cmConfigure.h" // IWYU pragma: keep
 
 #include "cmDocumentationEntry.h" // IWYU pragma: export
+#include "cmGlobalGenerator.h"    // IWYU pragma: keep
 
 // TODO The following headers are parts of the `cmGlobalGeneratorFactory`
 // public API, so could be defined as export to IWYU
@@ -13,7 +14,6 @@
 
 #include <cm/memory>
 
-class cmGlobalGenerator;
 class cmake;
 
 /** \class cmGlobalGeneratorFactory