-
Notifications
You must be signed in to change notification settings - Fork 532
Closed
Description
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:
- Remove the missing directory from the following places:
$(CPPUTEST_HOME)/include/Platforms/Gcc\ cpputest/platforms/Eclipse-Cygwin/.project
Line 1188 in 49bae19
<name>include/Platforms/Gcc</name> - Find a workaround for CMake:
cpputest/src/CppUTest/CMakeLists.txt
Line 58 in 49bae19
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/../../include/Platforms/${CPPUTEST_PLATFORM}> - Possible workaround for CMake: only reffering to this directory if it exists
- Create a dummy folder
include/Platforms/Gcc
with an empty.gitkeep
file in it (to ensure that it is kept by git)
- Do this for the other major platforms mentioned in
Line 68 in 49bae19
set(CPPUTEST_PLATFORM armcc)
Metadata
Metadata
Assignees
Labels
No labels