mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
fix(fizz)
This commit is contained in:
parent
d5a7f8c394
commit
0566c8ff9f
|
@ -28,13 +28,19 @@ build:
|
||||||
dependencies:
|
dependencies:
|
||||||
cmake.org: ^3
|
cmake.org: ^3
|
||||||
ninja-build.org: ^1
|
ninja-build.org: ^1
|
||||||
script: |
|
script:
|
||||||
cmake -S fizz -B build $ARGS
|
- cmake -S fizz -B build $ARGS
|
||||||
cmake --build build
|
- cmake --build build
|
||||||
cmake --install build
|
- cmake --install build
|
||||||
|
|
||||||
sed -i.bak "s:$PKGX_DIR:\$\{_IMPORT_PREFIX\}/../../../..:g" "{{prefix}}"/lib/cmake/fizz/fizz-targets.cmake
|
- run: |
|
||||||
rm "{{prefix}}"/lib/cmake/fizz/fizz-targets.cmake.bak
|
sed -E -i.bak \
|
||||||
|
-e "s:{{pkgx.prefix}}:\$\{_IMPORT_PREFIX\}/../../../..:g" \
|
||||||
|
-e '/^ INTERFACE_INCLUDE_DIRECTORIES/ s|/v([0-9]+)(\.[0-9]+)*[a-z]?/include|/v\1/include|g' \
|
||||||
|
-e '/^ INTERFACE_LINK_LIBRARIES/ s|/v([0-9]+)(\.[0-9]+)*[a-z]?/lib|/v\1/lib|g' \
|
||||||
|
fizz-targets.cmake
|
||||||
|
rm "{{prefix}}"/lib/cmake/fizz/fizz-targets.cmake.bak
|
||||||
|
working-directory: "{{prefix}}/lib/cmake/fizz"
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- -GNinja
|
- -GNinja
|
||||||
|
|
Loading…
Reference in a new issue