Merge pull request #49403 from tchaikov/cmake-boost

cmake: pass cflags using compileflags in BuildBoost.cmake

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
This commit is contained in:
Kefu Chai 2022-12-21 21:18:04 +08:00 committed by GitHub
commit 8b4db5d51c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,8 +63,6 @@ function(do_build_boost root_dir version)
else()
list(APPEND boost_features "address-model=32")
endif()
set(BOOST_CXXFLAGS "-fPIC -w") # check on arm, etc <---XXX
list(APPEND boost_features "cxxflags=${BOOST_CXXFLAGS}")
set(boost_with_libs)
foreach(c ${Boost_BUILD_COMPONENTS})
@ -110,6 +108,7 @@ function(do_build_boost root_dir version)
"using ${toolset}"
" : "
" : ${CMAKE_CXX_COMPILER}"
" : <compileflags>-fPIC <compileflags>-w <compileflags>-Wno-everything"
" ;\n")
if(with_python_version)
find_package(Python3 ${with_python_version} QUIET REQUIRED