fix(folly)

closes #4680
This commit is contained in:
Jacob Heider 2024-01-02 10:33:59 -05:00 committed by Jacob Heider
parent 311c04c3fc
commit 7454e43a88

View file

@ -17,6 +17,7 @@ dependencies:
gnu.org/coreutils: 9
google.github.io/snappy: '*'
google.com/double-conversion: ^3
google.com/googletest: ^1
fmt.dev: ^9
zlib.net: ^1
darwin:
@ -27,19 +28,6 @@ build:
cmake.org: ^3.0.2
freedesktop.org/pkg-config: ^0.29
script:
# folly uses the path to build as part of a regex, but out paths have "+"s in them.
# don't mess up the intentional newline
- run: |
sed -i.bak -E -f $PROP CMakeLists.txt
rm CMakeLists.txt.bak
prop: |
/^REMOVE_MATCHES_FROM_LISTS\(files hfiles/ {
i\\
string(REPLACE "+" "\\\\\\\\+" ESCAPED_FOLLY_DIR "\${FOLLY_DIR}")
}
s/\^\$\{FOLLY_DIR\}/^\$\{ESCAPED_FOLLY_DIR\}/g
- cmake $ARGS -DBUILD_SHARED_LIBS=ON -S . -B shared
- cmake --build shared
- cmake --install shared