Skip to content

Can't compile CppUTest with GCC when -Werror=missing-include-dirs is set #1784

@fgrie

Description

@fgrie

Hi,
it seems that CppUTest is not able to compile with GCC when -Werror=missing-include-dirs is set, as the directory include/Platforms/Gcc does not exist:

cc1plus.exe: error: C:/mydir/.build/gcc-x86_64-w64-mingw32/Release/_deps/cpputest-src/src/CppUTest/../../include/Platforms/Gcc: No such file or directory [-Werror=missing-include-dirs]

(built with Windows 10, GCC from w64devkit 1.17.0, cmake 3.27.4)

As far as I see, there are two possible solutions:

  1. Remove the missing directory from the following places:
  1. Create a dummy folder include/Platforms/Gcc with an empty .gitkeep file in it (to ensure that it is kept by git)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions