diff options
author | DavidKorczynski <david@adalogics.com> | 2022-07-09 21:11:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-09 21:11:09 +0100 |
commit | e9c42d0ed5ceefdef66587bf8ce06002fac277ee (patch) | |
tree | 157aadf4e24c53d7cd8491a93c591b0c0a6a8f68 /projects/libphonenumber/build.sh | |
parent | 3c04a4fab3273f05540d34ab82e449051f45f54f (diff) |
libphonenumber: fix build (#7986)
Diffstat (limited to 'projects/libphonenumber/build.sh')
-rwxr-xr-x | projects/libphonenumber/build.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/projects/libphonenumber/build.sh b/projects/libphonenumber/build.sh index 0d428f27..b003f33e 100755 --- a/projects/libphonenumber/build.sh +++ b/projects/libphonenumber/build.sh @@ -15,7 +15,7 @@ # ################################################################################ - +export CXXFLAGS="$CXXFLAGS -std=c++14" # For coverage build we need to remove some flags when building protobuf and icu if [ "$SANITIZER" = "coverage" ] @@ -77,6 +77,7 @@ fi # Build libphonenumber cd $SRC/libphonenumber/cpp sed -i 's/set (BUILD_SHARED_LIB true)/set (BUILD_SHARED_LIB false)/g' CMakeLists.txt +sed -i 's/set(CMAKE_CXX_STANDARD 11)/set(CMAKE_CXX_STANDARD 14)/g' CMakeLists.txt sed -i 's/list (APPEND CMAKE_C_FLAGS "-pthread")/string (APPEND CMAKE_C_FLAGS " -pthread")/g' CMakeLists.txt sed -i 's/# Safeguarding/find_package(absl REQUIRED) # Safeguarding/g' CMakeLists.txt |