euk@mac132276 MGARD % ./build_scripts/build_mgard_openmp_cpu.sh
- mgard_x_src_dir=.
- build_dir=./build-openmp-cpu
- num_build_procs=
- install_dir=./install-openmp-cpu
- zstd_dir=./build-openmp-cpu/zstd
- zstd_src_dir=./build-openmp-cpu/zstd/src
- zstd_build_dir=./build-openmp-cpu/zstd/build
- zstd_install_dir=./install-openmp-cpu
- '[' '!' -d ./build-openmp-cpu/zstd/src ']'
- git clone -b v1.5.0 https://github.com/facebook/zstd.git ./build-openmp-cpu/zstd/src
Cloning into './build-openmp-cpu/zstd/src'...
remote: Enumerating objects: 65171, done.
remote: Counting objects: 100% (52/52), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 65171 (delta 39), reused 29 (delta 29), pack-reused 65119 (from 3)
Receiving objects: 100% (65171/65171), 39.53 MiB | 14.83 MiB/s, done.
Resolving deltas: 100% (48770/48770), done.
warning: refs/tags/v1.5.0 fe616643e0f17552025f50b84508ac5b286dd30f is not a commit!
Note: switching to 'a488ba114ec17ea1054b9057c26a046fc122b3b6'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
-
mkdir -p ./build-openmp-cpu/zstd/build
-
cmake -S ./build-openmp-cpu/zstd/src/build/cmake -B ./build-openmp-cpu/zstd/build -DZSTD_MULTITHREAD_SUPPORT=ON -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=./install-openmp-cpu
CMake Error at CMakeLists.txt:10 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
euk@mac132276 MGARD % cmake --version
cmake version 4.3.4 I was able to fix this by changing the minimum cmake version of zstd and protobuf: Changing it to this: cmake_minimum_required(VERSION 3.5).
euk@mac132276 MGARD % ./build_scripts/build_mgard_openmp_cpu.sh
Cloning into './build-openmp-cpu/zstd/src'...
remote: Enumerating objects: 65171, done.
remote: Counting objects: 100% (52/52), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 65171 (delta 39), reused 29 (delta 29), pack-reused 65119 (from 3)
Receiving objects: 100% (65171/65171), 39.53 MiB | 14.83 MiB/s, done.
Resolving deltas: 100% (48770/48770), done.
warning: refs/tags/v1.5.0 fe616643e0f17552025f50b84508ac5b286dd30f is not a commit!
Note: switching to 'a488ba114ec17ea1054b9057c26a046fc122b3b6'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
mkdir -p ./build-openmp-cpu/zstd/build
cmake -S ./build-openmp-cpu/zstd/src/build/cmake -B ./build-openmp-cpu/zstd/build -DZSTD_MULTITHREAD_SUPPORT=ON -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=./install-openmp-cpu
CMake Error at CMakeLists.txt:10 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
euk@mac132276 MGARD % cmake --version
cmake version 4.3.4 I was able to fix this by changing the minimum cmake version of zstd and protobuf: Changing it to this: cmake_minimum_required(VERSION 3.5).