Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions scripts/run_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if ! type cmake >/dev/null 2>&1; then
fi
cur_version="$(cmake --version | head -n1 | cut -d" " -f3)"
require_mini_version="3.14.0"
if ! [ "$(printf '%s\n' "${require_mini_version}" "${cur_version}" | sort -V | head -n1)" = "${require_mini_version}" ]; then
if ! [ "$(printf '%s\n' "${require_mini_version}" "${cur_version}" | sort -V | head -n1)" = "${require_mini_version}" ]; then
install_cmake
fi

Expand All @@ -31,6 +31,10 @@ if [ -x "./build/tests/unittest" ]; then
./build/tests/unittest
fi

$CMAKE -S . -B build -DBUILD_BENCH=ON
$CMAKE --build build --target bench -j
./build/benchmark/bench
#====================================================================
# The benchmark build frequently fails in CI due to incompatible
# CMake configurations across dependent JSON libraries.
# ===================================================================
# $CMAKE -S . -B build -DBUILD_BENCH=ON
# $CMAKE --build build --target bench -j
# ./build/benchmark/bench