Commit 9d1fc834 authored by Andre Sailer's avatar Andre Sailer
Browse files

[SPI-1964]: add option to enable zlib for pythia8

parent e8cef074
Pipeline #3052714 passed with stage
in 8 minutes and 22 seconds
......@@ -451,14 +451,23 @@ endforeach()
#---pythia8------------------------------------------------------------------------------------------
if(NOT DEFINED pythia8_${pythia8_native_version}_zlib)
set(pythia8_${pythia8_native_version}_zlib "OFF")
endif()
LCGPackage_Add(
pythia8
URL ${gen_url}/pythia8<pythia8_<NATIVE_VERSION>_author>.tgz
CONFIGURE_COMMAND ./configure --prefix=<INSTALL_DIR> --with-hepmc2=${HepMC_home} --with-lhapdf6=${lhapdf_home} --enable-shared
"--cxx-common=${CMAKE_CXX_FLAGS} -O2 -pedantic -W -Wall -Wshadow -fPIC"
IF <pythia8_<NATIVE_VERSION>_zlib> STREQUAL "ON" THEN
--with-gzip=${zlib_home}
ENDIF
BUILD_COMMAND ${MAKE}
BUILD_IN_SOURCE 1
DEPENDS HepMC lhapdf
IF <pythia8_<NATIVE_VERSION>_zlib> STREQUAL "ON" THEN
zlib
ENDIF
)
#---Dire4Pythia8-------------------------------------------------------------------------------------------
......
Markdown is supported
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