facebookarchive / xcbuild

Xcode-compatible build tool.
Other
2k stars 190 forks source link

macos make failed #314

Open KnoooW opened 4 years ago

KnoooW commented 4 years ago

In file included from ../Libraries/acdriver/Sources/Compile/Output.cpp:13: In file included from ../Libraries/xcassets/Headers/xcassets/Asset/Asset.h:15: ../Libraries/libutil/Headers/libutil/Base.h:24:32: error: 'ptr_fun<int, int>' is deprecated [-Werror,-Wdeprecated-declarations] std::not1(std::ptr_fun<int, int>(::isspace)))); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:1097:1: note: 'ptr_fun<int, int>' has been explicitly marked deprecated here _LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__config:1101:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11' define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED ^

KnoooW commented 4 years ago

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

add in cmakelist solved!

CblPOB commented 4 years ago

@KnoooW Hi, where its need to be added?

alexandre-janniaux commented 4 years ago

To be able to build, removing -Werror from CMakeList.txt is probably the easiest.