You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using libpng with FetchContent does not work because header files are missing. I am using Windows 10 and I don't have libpng installed elsewhere. I ran cmake . --preset=default -B build and then cmake --build build --verbose.
Minimal reproducible example:
The include file is not being included automatically through the target. I think that it is related to this line and this line because it is private by default.
The text was updated successfully, but these errors were encountered:
Using libpng with FetchContent does not work because header files are missing. I am using Windows 10 and I don't have libpng installed elsewhere. I ran
cmake . --preset=default -B build
and thencmake --build build --verbose
.Minimal reproducible example:
main.c
CMakePresets.json
CMakeLists.txt
Snippet from error output:
[ 35%] Building C object CMakeFiles/usage.dir/main.c.obj C:/Users/Greg/scoop/apps/msys2/current/mingw64/bin/cc.exe -MD -MT CMakeFiles/usage.dir/main.c.obj -MF CMakeFiles/usage.dir/main.c.obj.d -o CMakeFiles/usage.dir/main.c.obj -c C:/Users/Greg/code/cmake-problem-example/main.c C:/Users/Greg/code/cmake-problem-example/main.c:1:10: fatal error: png.h: No such file or directory 1 | #include <png.h> | ^~~~~~~ compilation terminated.
error_output.txt
The include file is not being included automatically through the target. I think that it is related to this line and this line because it is private by default.
The text was updated successfully, but these errors were encountered: