Yet another way to pass -DBOOST_LIB_INSTALL_DIR to cmake

This commit is contained in:
Petr Machata 2011-04-04 14:16:11 +02:00
parent 50e7fa2daf
commit 646ad8dd4f

View File

@ -23,7 +23,7 @@ Name: boost
Summary: The free peer-reviewed portable C++ source libraries
Version: 1.46.1
%define version_enc 1_46_1
Release: 1%{?dist}
Release: 2%{?dist}
License: Boost
# The CMake build framework (set of CMakeLists.txt and module.cmake files) is
@ -439,10 +439,10 @@ sed 's/_FEDORA_SONAME/%{sonamever}/' %{PATCH2} | %{__patch} -p0 --fuzz=0
( echo ============================= build serial ==================
mkdir serial
cd serial
export CXXFLAGS="-DBOOST_IOSTREAMS_USE_DEPRECATED %{optflags}"
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo %{boost_testflags} \
-DENABLE_SINGLE_THREADED=YES -DINSTALL_VERSIONED=OFF \
-DWITH_MPI=OFF \
-DCMAKE_CXX_FLAGS="%{optflags} -DBOOST_IOSTREAMS_USE_DEPRECATED" \
..
make VERBOSE=1 %{?_smp_mflags}
)
@ -840,6 +840,12 @@ find $RPM_BUILD_ROOT%{_includedir}/ \( -name '*.pl' -o -name '*.sh' \) -exec %{_
%{_bindir}/bjam
%changelog
* Mon Apr 4 2011 Petr Machata <pmachata@redhat.com> - 1.46.1-2
- Yet another way to pass -DBOOST_LIB_INSTALL_DIR to cmake. Passing
via CMAKE_CXX_FLAGS for some reason breaks when rpm re-quotes the
expression as a result of %%{optflags} expansion.
- Related: #667294
* Sun Mar 13 2011 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.46.1-1
- Merged the latest changes from the bug-fix release of Boost-1.46