Skip to content

Commit f595683

Browse files
committed
Update CMake and Meson configuration and build scripts
1 parent be71d8a commit f595683

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

build-cmake.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/sh
22
set -eu
3-
cmake -B build -DCMAKE_INSTALL_PREFIX="${PREFIX:-$PWD}"
4-
cmake --build build --config Release
5-
cmake --install build --config Release
3+
prefix=${PREFIX:-$PWD}
4+
cmake -B build -DCMAKE_INSTALL_PREFIX="$prefix" -DCMAKE_BUILD_TYPE=Release
5+
cmake --build build
6+
cmake --install build
67
(test -d lib64 && ln -f -s lib64 lib) || true

build-meson.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/sh
22
set -eu
3-
meson setup build --prefix="${PREFIX:-$PWD}"
3+
prefix=${PREFIX:-$PWD}
4+
meson setup build --prefix="$prefix" --buildtype release
45
meson compile -C build
56
meson install -C build
67
(test -d lib64 && ln -f -s lib64 lib) || true

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(
22
'mpi-stubs',
33
'c',
4-
version: '4.2',
4+
version: '5.0',
55
license: 'MIT',
66
meson_version: '>=1.0.0',
77
)

0 commit comments

Comments
 (0)