SHA256
1
0
forked from pool/spdlog

Accepting request 694804 from home:alois

Fixed build on targets where gcc8 is availabl

OBS-URL: https://build.opensuse.org/request/show/694804
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=20
This commit is contained in:
Adam Majer 2019-04-16 14:00:04 +00:00 committed by Git OBS Bridge
parent e34ee06eb2
commit f36e617389
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 16 13:33:41 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>
- Fixed build on targets where gcc8 is available
-------------------------------------------------------------------
Mon Feb 18 09:33:36 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>

View File

@ -26,7 +26,11 @@ URL: https://github.com/gabime/spdlog
Source0: https://github.com/gabime/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: benchmark-devel >= 1.4.0
BuildRequires: cmake
%if 0%{?suse_version} > 1500
BuildRequires: gcc-c++ >= 8
%else
BuildRequires: gcc8-c++
%endif
BuildRequires: pkgconfig
BuildRequires: pkgconfig(fmt)
@ -51,6 +55,8 @@ find . -name '.gitignore' -exec rm {} \;
sed -i -e "s,\r,," README.md LICENSE
%build
export CXX=g++
test -x "$(type -p g++-8)" && export CXX=g++-8
%cmake -DSPDLOG_FMT_EXTERNAL=ON
%make_jobs