Skip to content

Commit

Permalink
dev-libs/FXdiv: fix building with dev-cpp/gtest-1.13.0
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/893340
Closes: gentoo#29471
Signed-off-by: Peter Levine <[email protected]>
Signed-off-by: Alfredo Tupone <[email protected]>
  • Loading branch information
Peter-Levine authored and atupone committed Feb 8, 2023
1 parent 46a32d0 commit cddffad
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Gentoo Authors
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
Expand Down Expand Up @@ -26,6 +26,14 @@ PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
)

src_prepare() {
cmake_src_prepare

# >=dev-cpp/gtest-1.13.0 requires C++14 standard or later
sed -i -e 's/CXX_STANDARD 11/CXX_STANDARD 14/g' \
CMakeLists.txt || die "sed failed"
}

src_configure() {
local mycmakeargs=(
-DFXDIV_BUILD_BENCHMARKS=OFF
Expand Down

0 comments on commit cddffad

Please sign in to comment.