From: Casey Bodley Date: Wed, 24 Jan 2024 14:44:25 +0000 (-0500) Subject: cmake/arrow: don't treat warnings as errors X-Git-Tag: v18.2.4~34 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e99ef0ef52fd12f52122268b20c80398b59a2891;p=ceph.git cmake/arrow: don't treat warnings as errors with arrow's default BUILD_WARNING_LEVEL, -Werror is added to cflags and debug builds fail on a warning about _FORTIFY_SOURCE Fixes: https://tracker.ceph.com/issues/63130 Signed-off-by: Casey Bodley (cherry picked from commit 5c1a57a1afed1e4a632fb6df6de34ff9689460db) (cherry picked from commit 7ecee431f6f3499730c5425b9b2930df8d61c159) --- diff --git a/cmake/modules/BuildArrow.cmake b/cmake/modules/BuildArrow.cmake index 691108a40c551..8a16b9b8899df 100644 --- a/cmake/modules/BuildArrow.cmake +++ b/cmake/modules/BuildArrow.cmake @@ -86,6 +86,9 @@ function(build_arrow) else() list(APPEND arrow_CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release) endif() + # don't add -Werror or debug package builds fail with: + #warning _FORTIFY_SOURCE requires compiling with optimization (-O) + list(APPEND arrow_CMAKE_ARGS -DBUILD_WARNING_LEVEL=PRODUCTION) # we use an external project and copy the sources to bin directory to ensure # that object files are built outside of the source tree.