Advertisement
Guest User

Untitled

a guest
May 25th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #if gcc >= 8 use std::filesystem instead of boost
  2. ifeq ($(shell expr $(GCCVER) \>= 8), 1)
  3. override CXXFLAGS += -std=c++17
  4. ifeq ($(OS), Darwin)
  5. FS_LIBS=-lboost_system -lboost_filesystem
  6. else
  7. FS_LIBS=-lstdc++fs
  8. endif
  9. else
  10. override CXXFLAGS += -std=c++14 -DUSE_BOOST_FS
  11. ifeq ($(OS), Linux)
  12. FS_LIBS=-lboost_system -lboost_filesystem
  13. else ifeq ($(OS), Darwin)
  14. FS_LIBS=-lboost_system -lboost_filesystem
  15. else
  16. FS_LIBS=-lboost_system-mt -lboost_filesystem-mt
  17. endif
  18. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement