You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3 KiB

  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -112,17 +112,19 @@ configure_file(
  4. auto_sources(files "*.cpp" "RECURSE" "${FOLLY_DIR}")
  5. auto_sources(hfiles "*.h" "RECURSE" "${FOLLY_DIR}")
  6. +string(REPLACE + \\+ FOLLY_DIR_ESCAPED ${FOLLY_DIR})
  7. +
  8. # Exclude tests, benchmarks, and other standalone utility executables from the
  9. # library sources. Test sources are listed separately below.
  10. REMOVE_MATCHES_FROM_LISTS(files hfiles
  11. MATCHES
  12. - "^${FOLLY_DIR}/build/"
  13. - "^${FOLLY_DIR}/experimental/exception_tracer/"
  14. - "^${FOLLY_DIR}/experimental/pushmi/"
  15. - "^${FOLLY_DIR}/futures/exercises/"
  16. - "^${FOLLY_DIR}/logging/example/"
  17. - "^${FOLLY_DIR}/(.*/)?test/"
  18. - "^${FOLLY_DIR}/tools/"
  19. + "^${FOLLY_DIR_ESCAPED}/build/"
  20. + "^${FOLLY_DIR_ESCAPED}/experimental/exception_tracer/"
  21. + "^${FOLLY_DIR_ESCAPED}/experimental/pushmi/"
  22. + "^${FOLLY_DIR_ESCAPED}/futures/exercises/"
  23. + "^${FOLLY_DIR_ESCAPED}/logging/example/"
  24. + "^${FOLLY_DIR_ESCAPED}/(.*/)?test/"
  25. + "^${FOLLY_DIR_ESCAPED}/tools/"
  26. "Benchmark.cpp$"
  27. "Test.cpp$"
  28. )
  29. @@ -175,7 +177,7 @@ list(APPEND hfiles
  30. if (NOT FOLLY_USE_SYMBOLIZER)
  31. REMOVE_MATCHES_FROM_LISTS(files hfiles
  32. MATCHES
  33. - "^${FOLLY_DIR}/experimental/symbolizer/"
  34. + "^${FOLLY_DIR_ESCAPED}/experimental/symbolizer/"
  35. )
  36. list(REMOVE_ITEM files
  37. ${FOLLY_DIR}/SingletonStackTrace.cpp