Skip to content

Commit

Permalink
Update cmake to include proper flags and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodozov committed Apr 20, 2020
1 parent 4c60e21 commit 72ccb07
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions root.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Source: git+https://github.com/%{github_user}/root.git?obj=%{branch}/%{tag}&expo

BuildRequires: cmake ninja

Requires: gsl libjpeg-turbo libpng libtiff giflib pcre python fftw3 xz xrootd libxml2 openssl zlib davix tbb OpenBLAS py2-numpy lz4 freetype zstd
Requires: gsl libjpeg-turbo libpng libtiff giflib pcre python python3 fftw3 xz xrootd libxml2 openssl zlib davix tbb OpenBLAS py2-numpy py3-numpy lz4 freetype zstd

%if %islinux
Requires: dcap
Expand Down Expand Up @@ -48,6 +48,7 @@ cmake ../%{n}-%{realversion} \
-DCMAKE_LINKER=ld \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-Druntime_cxxmodules=ON \
-DPython3_EXECUTABLE="${PYTHON3_ROOT}/bin/python3" \
-Droot7=ON \
-Dfail-on-missing=ON \
-Dgnuinstall=OFF \
Expand Down Expand Up @@ -91,7 +92,7 @@ cmake ../%{n}-%{realversion} \
-Dssl=ON \
-DOPENSSL_ROOT_DIR="${OPENSSL_ROOT}" \
-DOPENSSL_INCLUDE_DIR="${OPENSSL_ROOT}/include" \
-Dpython=ON \
-Dpyroot=ON \
-Dxrootd=ON \
-Dbuiltin_xrootd=OFF \
-DXROOTD_INCLUDE_DIR="${XROOTD_ROOT}/include/xrootd" \
Expand Down Expand Up @@ -140,7 +141,7 @@ cmake ../%{n}-%{realversion} \
-DZLIB_ROOT="${ZLIB_ROOT}" \
-DZLIB_INCLUDE_DIR="${ZLIB_ROOT}/include" \
-DZSTD_ROOT="${ZSTD_ROOT}" \
-DCMAKE_PREFIX_PATH="${LZ4_ROOT}/include;${LZ4_ROOT}/lib;${GSL_ROOT};${XZ_ROOT};${OPENSSL_ROOT};${GIFLIB_ROOT};${FREETYPE_ROOT};${PYTHON_ROOT};${LIBPNG_ROOT};${PCRE_ROOT};${TBB_ROOT};${OPENBLAS_ROOT};${DAVIX_ROOT};${LZ4_ROOT/usr/local};${LIBXML2_ROOT};${ZSTD_ROOT}" \
-DCMAKE_PREFIX_PATH="${LZ4_ROOT};${GSL_ROOT};${XZ_ROOT};${OPENSSL_ROOT};${GIFLIB_ROOT};${FREETYPE_ROOT};${PYTHON_ROOT};${PYTHON3_ROOT};${LIBPNG_ROOT};${PCRE_ROOT};${TBB_ROOT};${OPENBLAS_ROOT};${DAVIX_ROOT};${LIBXML2_ROOT};${ZSTD_ROOT}" \
-Dpyroot_experimental=OFF
# For CMake cache variables: http://www.cmake.org/cmake/help/v3.2/manual/cmake-language.7.html#lists
# For environment variables it's OS specific: http://www.cmake.org/Wiki/CMake_Useful_Variables
Expand Down

0 comments on commit 72ccb07

Please sign in to comment.