wip
This commit is contained in:
parent
c37cdde63f
commit
31b999ac2b
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@ command_exists() {
|
||||||
command -v "$@" >/dev/null 2>&1
|
command -v "$@" >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cores="$(nproc 2>/dev/null || getconf NPROCESSORS_CONF)"
|
||||||
|
|
||||||
# ─< package variable >───────────────────────────────────────────────────────────────────
|
# ─< package variable >───────────────────────────────────────────────────────────────────
|
||||||
unset PACKAGE
|
unset PACKAGE
|
||||||
|
|
||||||
|
@ -97,7 +99,7 @@ getDependencies() {
|
||||||
build() {
|
build() {
|
||||||
echo_pkg build
|
echo_pkg build
|
||||||
run cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
run cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
||||||
run cmake --build ./build --config Release --target all -j$(nproc 2>/dev/null || getconf NPROCESSORS_CONF)
|
run cmake --build ./build --config Release --target all -j"${cores}"
|
||||||
}
|
}
|
||||||
|
|
||||||
cloneAndInstall() {
|
cloneAndInstall() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue