forked from pool/cmake
Accepting request 610893 from home:mathletic:branches:devel:tools:building
Fix CMake for Leap 42.3 and SLE 12 OBS-URL: https://build.opensuse.org/request/show/610893 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=325
This commit is contained in:
committed by
Git OBS Bridge
parent
e17bb59f5f
commit
f968105a97
10
cmake.spec
10
cmake.spec
@@ -50,7 +50,13 @@ BuildRequires: libcurl-mini-devel
|
||||
BuildRequires: libcurl-devel
|
||||
%endif
|
||||
BuildRequires: libexpat-devel
|
||||
BuildRequires: libuv-devel
|
||||
# exclude for SLE 12 and Leap 42.x
|
||||
%if 0%{?suse_version} == 1315
|
||||
%define system_libuv OFF
|
||||
%else
|
||||
BuildRequires: libuv-devel >= 1.10
|
||||
%define system_libuv ON
|
||||
%endif
|
||||
BuildRequires: ncurses-devel
|
||||
# this is commented as it would create dependancy cycle between jsoncpp and cmake
|
||||
#if 0%{?suse_version} > 1320
|
||||
@@ -90,7 +96,7 @@ export CXXFLAGS="%{optflags}"
|
||||
--verbose \
|
||||
--no-qt-gui \
|
||||
-- \
|
||||
-DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=ON
|
||||
-DCMAKE_USE_SYSTEM_LIBRARY_LIBUV=%{system_libuv}
|
||||
make VERBOSE=1 %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
|
Reference in New Issue
Block a user