Skip to content

Conversation

@Andrej730
Copy link

Hi! Wanted to update docs and end up fixing many issues that accumulated by the years.

Each commit has some incremental change - I was also attaching fixed errors / warnings to the descriptions to make changes more clear. So it should be relatively easy to follow.

There are still some doxygen warnings/errors (and lots of "undocumented" warnings), but I'm not that familar with neither doxygen or alembic codebase to proceed with this.

doxygen warnings / errors
L:\Projects\Github\alembic-docs\sphinx\reference\abc.rst:16: WARNING: Duplicate C++ declaration, also defined at reference/abc:16.
Declaration is '.. cpp:type:: Alembic::Abc::ALEMBIC_VERSION_NS'. [duplicate_declaration.cpp]
L:\Projects\Github\alembic-docs\sphinx\reference\abca.rst:19: WARNING: Duplicate C++ declaration, also defined at reference/abc:16.
Declaration is '.. cpp:type:: Alembic'. [duplicate_declaration.cpp]
L:\Projects\Github\alembic-docs\sphinx\reference\abcc.rst:4: WARNING: Duplicate C++ declaration, also defined at reference/abc:16.
Declaration is '.. cpp:type:: Alembic'. [duplicate_declaration.cpp]
L:\Projects\Github\alembic-docs\sphinx\reference\abcc.rst:4: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name. [error at 33]
    ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcCollection_Collections_v1", "", ".collection", false, CollectionsSchemaInfo)
    ---------------------------------^
If the function has a return type:
  Error in declarator
  If declarator-id with parameters-and-qualifiers:
    Invalid C++ declaration: Expected identifier in nested name. [error at 32]
      ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcCollection_Collections_v1", "", ".collection", false, CollectionsSchemaInfo)
      --------------------------------^
  If parenthesis in noptr-declarator:
    Error in declarator or parameters-and-qualifiers
    If pointer to member declarator:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcCollection_Collections_v1", "", ".collection", false, CollectionsSchemaInfo)
        ---------------------------------^
    If declarator-id:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcCollection_Collections_v1", "", ".collection", false, CollectionsSchemaInfo)
        ---------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Duplicate C++ declaration, also defined at reference/abcc:4.
Declaration is '.. cpp:type:: Abc'. [duplicate_declaration.cpp]
L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Duplicate C++ declaration, also defined at reference/abc:16.
Declaration is '.. cpp:type:: Alembic'. [duplicate_declaration.cpp]
L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name, got keyword: const [error at 12]
    static const int32_t ABC_GEOM_NUPATCH_NULL_INT_VALUE (-536870912)
    ------------^
If the function has a return type:
  Error in declarator or parameters-and-qualifiers
  If pointer to member declarator:
    Invalid C++ declaration: Expected '::' in pointer to member (function). [error at 53]
      static const int32_t ABC_GEOM_NUPATCH_NULL_INT_VALUE (-536870912)
      -----------------------------------------------------^
  If declarator-id:
    Invalid C++ declaration: Expected identifier in nested name. [error at 54]
      static const int32_t ABC_GEOM_NUPATCH_NULL_INT_VALUE (-536870912)
      ------------------------------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name, got keyword: const [error at 12]
    static const int32_t ABC_GEOM_SUBD_NULL_INT_VALUE (-1073741824)
    ------------^
If the function has a return type:
  Error in declarator or parameters-and-qualifiers
  If pointer to member declarator:
    Invalid C++ declaration: Expected '::' in pointer to member (function). [error at 50]
      static const int32_t ABC_GEOM_SUBD_NULL_INT_VALUE (-1073741824)
      --------------------------------------------------^
  If declarator-id:
    Invalid C++ declaration: Expected identifier in nested name. [error at 51]
      static const int32_t ABC_GEOM_SUBD_NULL_INT_VALUE (-1073741824)
      ---------------------------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name. [error at 33]
    ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_PolyMesh_v1", "AbcGeom_GeomBase_v1", ".geom", false, PolyMeshSchemaInfo)
    ---------------------------------^
If the function has a return type:
  Error in declarator
  If declarator-id with parameters-and-qualifiers:
    Invalid C++ declaration: Expected identifier in nested name. [error at 32]
      ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_PolyMesh_v1", "AbcGeom_GeomBase_v1", ".geom", false, PolyMeshSchemaInfo)
      --------------------------------^
  If parenthesis in noptr-declarator:
    Error in declarator or parameters-and-qualifiers
    If pointer to member declarator:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_PolyMesh_v1", "AbcGeom_GeomBase_v1", ".geom", false, PolyMeshSchemaInfo)
        ---------------------------------^
    If declarator-id:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_PolyMesh_v1", "AbcGeom_GeomBase_v1", ".geom", false, PolyMeshSchemaInfo)
        ---------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name. [error at 33]
    ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_NuPatch_v2", "AbcGeom_GeomBase_v1", ".geom", false, NuPatchSchemaInfo)
    ---------------------------------^
If the function has a return type:
  Error in declarator
  If declarator-id with parameters-and-qualifiers:
    Invalid C++ declaration: Expected identifier in nested name. [error at 32]
      ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_NuPatch_v2", "AbcGeom_GeomBase_v1", ".geom", false, NuPatchSchemaInfo)
      --------------------------------^
  If parenthesis in noptr-declarator:
    Error in declarator or parameters-and-qualifiers
    If pointer to member declarator:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_NuPatch_v2", "AbcGeom_GeomBase_v1", ".geom", false, NuPatchSchemaInfo)
        ---------------------------------^
    If declarator-id:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_NuPatch_v2", "AbcGeom_GeomBase_v1", ".geom", false, NuPatchSchemaInfo)
        ---------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name. [error at 33]
    ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_SubD_v1", "AbcGeom_GeomBase_v1", ".geom", false, SubDSchemaInfo)
    ---------------------------------^
If the function has a return type:
  Error in declarator
  If declarator-id with parameters-and-qualifiers:
    Invalid C++ declaration: Expected identifier in nested name. [error at 32]
      ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_SubD_v1", "AbcGeom_GeomBase_v1", ".geom", false, SubDSchemaInfo)
      --------------------------------^
  If parenthesis in noptr-declarator:
    Error in declarator or parameters-and-qualifiers
    If pointer to member declarator:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_SubD_v1", "AbcGeom_GeomBase_v1", ".geom", false, SubDSchemaInfo)
        ---------------------------------^
    If declarator-id:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_SubD_v1", "AbcGeom_GeomBase_v1", ".geom", false, SubDSchemaInfo)
        ---------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name. [error at 33]
    ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_FaceSet_v1", "AbcGeom_GeomBase_v1", ".faceset", false, FaceSetSchemaInfo)
    ---------------------------------^
If the function has a return type:
  Error in declarator
  If declarator-id with parameters-and-qualifiers:
    Invalid C++ declaration: Expected identifier in nested name. [error at 32]
      ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_FaceSet_v1", "AbcGeom_GeomBase_v1", ".faceset", false, FaceSetSchemaInfo)
      --------------------------------^
  If parenthesis in noptr-declarator:
    Error in declarator or parameters-and-qualifiers
    If pointer to member declarator:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_FaceSet_v1", "AbcGeom_GeomBase_v1", ".faceset", false, FaceSetSchemaInfo)
        ---------------------------------^
    If declarator-id:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_FaceSet_v1", "AbcGeom_GeomBase_v1", ".faceset", false, FaceSetSchemaInfo)
        ---------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name. [error at 33]
    ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Points_v1", "AbcGeom_GeomBase_v1", ".geom", false, PointsSchemaInfo)
    ---------------------------------^
If the function has a return type:
  Error in declarator
  If declarator-id with parameters-and-qualifiers:
    Invalid C++ declaration: Expected identifier in nested name. [error at 32]
      ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Points_v1", "AbcGeom_GeomBase_v1", ".geom", false, PointsSchemaInfo)
      --------------------------------^
  If parenthesis in noptr-declarator:
    Error in declarator or parameters-and-qualifiers
    If pointer to member declarator:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Points_v1", "AbcGeom_GeomBase_v1", ".geom", false, PointsSchemaInfo)
        ---------------------------------^
    If declarator-id:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Points_v1", "AbcGeom_GeomBase_v1", ".geom", false, PointsSchemaInfo)
        ---------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name. [error at 33]
    ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Xform_v3", "", ".xform", true, XformSchemaInfo)
    ---------------------------------^
If the function has a return type:
  Error in declarator
  If declarator-id with parameters-and-qualifiers:
    Invalid C++ declaration: Expected identifier in nested name. [error at 32]
      ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Xform_v3", "", ".xform", true, XformSchemaInfo)
      --------------------------------^
  If parenthesis in noptr-declarator:
    Error in declarator or parameters-and-qualifiers
    If pointer to member declarator:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Xform_v3", "", ".xform", true, XformSchemaInfo)
        ---------------------------------^
    If declarator-id:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Xform_v3", "", ".xform", true, XformSchemaInfo)
        ---------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name. [error at 33]
    ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Camera_v1", "", ".geom", true, CameraSchemaInfo)
    ---------------------------------^
If the function has a return type:
  Error in declarator
  If declarator-id with parameters-and-qualifiers:
    Invalid C++ declaration: Expected identifier in nested name. [error at 32]
      ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Camera_v1", "", ".geom", true, CameraSchemaInfo)
      --------------------------------^
  If parenthesis in noptr-declarator:
    Error in declarator or parameters-and-qualifiers
    If pointer to member declarator:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Camera_v1", "", ".geom", true, CameraSchemaInfo)
        ---------------------------------^
    If declarator-id:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Camera_v1", "", ".geom", true, CameraSchemaInfo)
        ---------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name. [error at 33]
    ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Curve_v2", "AbcGeom_GeomBase_v1", ".geom", false, CurvesSchemaInfo)
    ---------------------------------^
If the function has a return type:
  Error in declarator
  If declarator-id with parameters-and-qualifiers:
    Invalid C++ declaration: Expected identifier in nested name. [error at 32]
      ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Curve_v2", "AbcGeom_GeomBase_v1", ".geom", false, CurvesSchemaInfo)
      --------------------------------^
  If parenthesis in noptr-declarator:
    Error in declarator or parameters-and-qualifiers
    If pointer to member declarator:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Curve_v2", "AbcGeom_GeomBase_v1", ".geom", false, CurvesSchemaInfo)
        ---------------------------------^
    If declarator-id:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Curve_v2", "AbcGeom_GeomBase_v1", ".geom", false, CurvesSchemaInfo)
        ---------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name. [error at 33]
    ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Light_v1", "", ".geom", true, LightSchemaInfo)
    ---------------------------------^
If the function has a return type:
  Error in declarator
  If declarator-id with parameters-and-qualifiers:
    Invalid C++ declaration: Expected identifier in nested name. [error at 32]
      ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Light_v1", "", ".geom", true, LightSchemaInfo)
      --------------------------------^
  If parenthesis in noptr-declarator:
    Error in declarator or parameters-and-qualifiers
    If pointer to member declarator:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Light_v1", "", ".geom", true, LightSchemaInfo)
        ---------------------------------^
    If declarator-id:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_Light_v1", "", ".geom", true, LightSchemaInfo)
        ---------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name. [error at 33]
    ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_GeomBase_v1", "", ".geom", false, GeomBaseSchemaInfo)
    ---------------------------------^
If the function has a return type:
  Error in declarator
  If declarator-id with parameters-and-qualifiers:
    Invalid C++ declaration: Expected identifier in nested name. [error at 32]
      ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_GeomBase_v1", "", ".geom", false, GeomBaseSchemaInfo)
      --------------------------------^
  If parenthesis in noptr-declarator:
    Error in declarator or parameters-and-qualifiers
    If pointer to member declarator:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_GeomBase_v1", "", ".geom", false, GeomBaseSchemaInfo)
        ---------------------------------^
    If declarator-id:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcGeom_GeomBase_v1", "", ".geom", false, GeomBaseSchemaInfo)
        ---------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\abcg.rst:12: WARNING: Duplicate C++ declaration, also defined at reference/abcg:12.
Declaration is '.. cpp:type:: Alembic::AbcGeom::ALEMBIC_VERSION_NS'. [duplicate_declaration.cpp]
L:\Projects\Github\alembic-docs\sphinx\reference\abcm.rst:31: WARNING: Duplicate C++ declaration, also defined at reference/abcc:4.
Declaration is '.. cpp:type:: Abc'. [duplicate_declaration.cpp]
L:\Projects\Github\alembic-docs\sphinx\reference\abcm.rst:31: WARNING: Duplicate C++ declaration, also defined at reference/abc:16.
Declaration is '.. cpp:type:: Alembic'. [duplicate_declaration.cpp]
L:\Projects\Github\alembic-docs\sphinx\reference\abcm.rst:31: WARNING: Error when parsing function declaration.
If the function has no return type:
  Error in declarator or parameters-and-qualifiers
  Invalid C++ declaration: Expected identifier in nested name. [error at 33]
    ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcMaterial_Material_v1", "", ".material", false, MaterialSchemaInfo)
    ---------------------------------^
If the function has a return type:
  Error in declarator
  If declarator-id with parameters-and-qualifiers:
    Invalid C++ declaration: Expected identifier in nested name. [error at 32]
      ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcMaterial_Material_v1", "", ".material", false, MaterialSchemaInfo)
      --------------------------------^
  If parenthesis in noptr-declarator:
    Error in declarator or parameters-and-qualifiers
    If pointer to member declarator:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcMaterial_Material_v1", "", ".material", false, MaterialSchemaInfo)
        ---------------------------------^
    If declarator-id:
      Invalid C++ declaration: Expected identifier in nested name. [error at 33]
        ALEMBIC_ABC_DECLARE_SCHEMA_INFO ("AbcMaterial_Material_v1", "", ".material", false, MaterialSchemaInfo)
        ---------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\util.rst:4: WARNING: Error in declarator or parameters-and-qualifiers
If pointer to member declarator:
  Invalid C++ declaration: Expected identifier in nested name. [error at 47]
    union Alembic::Util::ALEMBIC_VERSION_NS::Digest
    -----------------------------------------------^
If declarator-id:
  Invalid C++ declaration: Expected identifier in nested name. [error at 47]
    union Alembic::Util::ALEMBIC_VERSION_NS::Digest
    -----------------------------------------------^

L:\Projects\Github\alembic-docs\sphinx\reference\util.rst:4: WARNING: Duplicate C++ declaration, also defined at reference/abc:16.
Declaration is '.. cpp:type:: Alembic'. [duplicate_declaration.cpp]
L:\Projects\Github\alembic-docs\sphinx\reference\util.rst:4: WARNING: Duplicate C++ declaration, also defined at reference/abca:19.
Declaration is '.. cpp:type:: Alembic::Util'. [duplicate_declaration.cpp]

@lamiller0 can you please take a look?

Fixes warning

```
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
```
Fixes cmake warning

```
CMake Deprecation Warning at CMakeLists.txt:36 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.
```
To fix warning
```
CMake Warning (dev) at CMakeLists.txt:44 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.
```
Resolves warning:
```
WARNING: Calling get_html_theme_path is deprecated. If you are calling it to define html_theme_path, you are safe to remove that code.
```
Fixes warning:
```
WARNING: html_static_path entry '_static' does not exist
```
Fixes warning:
```
<rst_epilog>:1: WARNING: Substitution definition "version" empty or invalid.

.. |version| replace: 1.8.9 [docutils]
```
Fixes warnings:
```
L:\Projects\Github\alembic-docs\sphinx\reference\abcm.rst:15: ERROR: Unknown target name: "coshader". [docutils]
L:\Projects\Github\alembic-docs\sphinx\python\abcm.rst:15: ERROR: Unknown target name: "coshader". [docutils]
```
Fixes warnings:
```
L:\Projects\Github\alembic-docs\sphinx\python\examples.rst: WARNING: document isn't included in any toctree [toc.not_included]
L:\Projects\Github\alembic-docs\sphinx\reference\index.rst: WARNING: document isn't included in any toctree [toc.not_included]
```
To make snippets reproducable without wildcard imports.
1) Used `find_package_handle_standard_args` to handle required variables automatically. It also handles `REQUIRED` keyword in `find_package` which previously had no effect, though it was used in cmake.

2) Simplified if statements a bit - `-NOTFOUND` variables evaluate to `FALSE` in cmake automatically.
Fixes warning below:
```
CMake Warning (dev) at CMakeLists.txt:51 (find_package):
  Policy CMP0144 is not set: find_package uses upper-case <PACKAGENAME>_ROOT
  variables.  Run "cmake --help-policy CMP0144" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  CMake variable ALEMBIC_ROOT is set to:

    L:\Software\usr\alembic

  For compatibility, find_package is ignoring the variable, but code in a
  .cmake module might still use it.
This warning is for project developers.  Use -Wno-dev to suppress it.
```
Found when there was an issue with `FindAlembic` not handling `REQUIRED`, but I guess it wouldn't hurt to have this check always.
@lamiller0 lamiller0 self-assigned this Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants