#2 build with cmake3 to export cmake's Eigen3::Eigen target
Merged 4 years ago by smani. Opened 4 years ago by junghans.
rpms/ junghans/eigen3 target_for_cmake  into  epel7

file modified
+6 -3
@@ -8,7 +8,7 @@ 

  

  Name:           eigen3

  Version:        3.3.4

- Release:        6%{?dist}

+ Release:        7%{?dist}

  Summary:        A lightweight C++ template library for vector and matrix math

  

  Group:          Development/Libraries
@@ -43,7 +43,7 @@ 

  BuildRequires:  scotch-devel

  BuildRequires:  metis-devel

  

- BuildRequires:  cmake

+ BuildRequires:  cmake3

  BuildRequires:  make

  BuildRequires:  gcc-c++

  BuildRequires:  doxygen
@@ -85,7 +85,7 @@ 

  # https://bugzilla.redhat.com/show_bug.cgi?id=1063999

  #export CXXFLAGS="%{optflags} -mno-vsx"

  #%endif

- %cmake .. -DINCLUDE_INSTALL_DIR=%{_includedir}/eigen3 \

+ %cmake3 .. -DINCLUDE_INSTALL_DIR=%{_includedir}/eigen3 \

    -DBLAS_LIBRARIES="cblas" \

    -DSUPERLU_INCLUDES=%{_includedir}/SuperLU \

    -DSCOTCH_INCLUDES=%{_includedir} -DSCOTCH_LIBRARIES="scotch" \
@@ -118,6 +118,9 @@ 

  %doc %{_target_platform}/doc/html

  

  %changelog

+ * Wed Oct 30 2019 Christoph Junghans <junghans@votca.org> - 3.3.4-7

+ - build with cmake3 to export cmake's Eigen3::Eigen target

+ 

  * Fri May 25 2018 Björn Esser <besser82@fedoraproject.org> - 3.3.4-6

  - Fix compilation of Jacobi rotations with ARM NEON, some

    specializations of internal::conj_helper were missing

Eigen won't export its targets unless it is build with cmake3, this change is backwards compatible as before targets just didn't get exported.

Pull-Request has been merged by smani

4 years ago

Thanks, will you roll an update for epel7 as well?