Force C++11 as this code is not C++17 ready
This commit is contained in:
parent
fca9b8ae27
commit
4d70029b04
@ -1,6 +1,6 @@
|
||||
Name: pfstools
|
||||
Version: 2.1.0
|
||||
Release: 13%{?dist}
|
||||
Release: 14%{?dist}
|
||||
Summary: Programs for handling high-dynamic range images
|
||||
|
||||
License: GPLv2+
|
||||
@ -129,6 +129,9 @@ etc., for developing programs which can handle HDR graphics files.
|
||||
|
||||
%build
|
||||
%{?el7:export CXXFLAGS="%{optflags} -std=gnu++11"}
|
||||
%if 0%{?fedora} >= 33
|
||||
export CXXFLAGS="%{optflags} -std=gnu++11"
|
||||
%endif
|
||||
mkdir -p %{_target_platform}
|
||||
%{cmake} -B %{_target_platform} -DBUILD_SHARED_LIBS=ON -DLIB_DIR=%{_lib} -DWITH_OpenCV=OFF .
|
||||
make -C %{_target_platform}
|
||||
@ -298,6 +301,9 @@ make -C %{_target_platform}
|
||||
%{_includedir}/pfs
|
||||
|
||||
%changelog
|
||||
* Tue Aug 14 2020 Jeff Law <law@redhat.com> - 2.1.0-14
|
||||
- Force C++11 as this code is not C++17 ready
|
||||
|
||||
* Thu Aug 06 2020 Tomas Smetana <tsmetana@redhat.com> - 2.1.0-13
|
||||
- Fix #1865214: Update spec for new cmake
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user