Commit 8a9269fb authored by Simon Braß's avatar Simon Braß
Browse files

Change HepMC from autotools to CMake installation.

parent a8d2bc50
Pipeline #7345 failed with stage
in 7 minutes and 2 seconds
......@@ -98,11 +98,15 @@ build_hepmc () {
local config="${2}"
local name="${dir_hepmc}"
test -d "${name}" || download_untar_pkg "${url}"
cd "${name}" && \
./bootstrap && \
make_make_install "${config}" && \
# Ignore their warning about in src builds.
cd "${BUILD}"
test ! -d "${name}-build" || rm -rf "${name}-build"
mkdir -p "${name}-build" && \
cd "${name}-build" && \
cmake ${config} "../${name}" && \
make && \
# \todo{sbrass: The tests are not working.}
# make test && \
make install && \
d "${BUILD}"
}
build_ocaml () {
......@@ -298,9 +302,10 @@ function help() {
########################################################################
HEPMC_CONFIG=(
CXXFLAGS="--std=c++11"
--with-momentum=GEV
--with-length=MM
-DCMAKE_INSTALL_PREFIX="${PREFIX}"
-DCMAKE_CXX_FLAGS="--std=c++11"
-Dmomentum:STRING=GEV
-Dlength:STRING=MM
)
# Disable Python as the dependency is python-dev
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment