-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Build is failing to find
"png++/png.hpp"even though it is installed in
/usr/local/Cellar/png++/0.2.10/include/png++/png.hpp
I tried to edit
chrgfx/CMakeLists.txtto manually add the source dirs but not luck.
The actual build failure is
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_26f9a.dir/PNGPP_H.cpp.o -c /Users/[..]/chrgfx/build/CMakeFiles/CheckIncludeFiles/PNGPP_H.cpp -I /usr/local/Cellar/png++/0.2.10/include/ ... fatal error: 'png++/png.hpp' file not found
and compiles fine if I add the two source dirs with "-I"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o /tmp/PNGPP_H.cpp.o -c /Users/[..]/chrgfx/build/CMakeFiles/CheckIncludeFiles/PNGPP_H.cpp -I /usr/local/Cellar/png++/0.2.10/include -I /usr/local/Cellar/libpng/1.6.37/include/
But I don't know how to make CMAKE aware of these.
This seems to only affect OSX. Linux works great. Thank you!
Metadata
Metadata
Assignees
Labels
No labels