forked from pool/spdlog
Accepting request 705726 from home:Dead_Mozay:matrix
- Added additional building options OBS-URL: https://build.opensuse.org/request/show/705726 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=22
This commit is contained in:
parent
f36e617389
commit
1cdc02dc13
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 27 06:11:03 UTC 2019 - Dead Mozay <dead_mozay@opensuse.org>
|
||||
|
||||
- Added additional building options
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 16 13:33:41 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>
|
||||
|
||||
|
14
spdlog.spec
14
spdlog.spec
@ -31,6 +31,8 @@ BuildRequires: gcc-c++ >= 8
|
||||
%else
|
||||
BuildRequires: gcc8-c++
|
||||
%endif
|
||||
BuildRequires: gcc
|
||||
BuildRequires: ninja
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(fmt)
|
||||
|
||||
@ -57,11 +59,17 @@ 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
|
||||
%cmake -G Ninja \
|
||||
-DSPDLOG_BUILD_TESTS=ON \
|
||||
-DSPDLOG_BUILD_BENCH=OFF \
|
||||
-DSPDLOG_FMT_EXTERNAL=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DSPDLOG_BUILD_EXAMPLES=OFF \
|
||||
..
|
||||
%ninja_build
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
%ninja_install -C build
|
||||
|
||||
%check
|
||||
%ctest
|
||||
|
Loading…
Reference in New Issue
Block a user