We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c98eb5 commit ebb2aa6Copy full SHA for ebb2aa6
1 file changed
distro/pkg/rpm/libyang.spec
@@ -66,12 +66,11 @@ written (and providing API) in C.
66
-DCMAKE_C_FLAGS="${RPM_OPT_FLAGS}" \
67
-DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS}" \
68
..
69
- make
70
%else
71
%cmake -DCMAKE_BUILD_TYPE=RELWITHDEBINFO
72
- %cmake_build
73
%endif
74
-%cmake_build --target doc
+cmake --build .
+cmake --build . --target doc
75
76
%check
77
%if ( 0%{?rhel} == 0 ) || 0%{?rhel} > 7
@@ -85,7 +84,7 @@ ctest --output-on-failure -V %{?_smp_mflags}
85
84
mkdir -m0755 -p %{buildroot}/%{_docdir}/libyang
86
%if 0%{?rhel} && 0%{?rhel} < 8
87
cd build
88
- make DESTDIR=%{buildroot} install
+ DESTDIR=%{buildroot} cmake --build . --target install
89
90
%cmake_install
91
cp -a doc/html %{buildroot}/%{_docdir}/libyang/html
0 commit comments