Skip to content

Commit 2ff431b

Browse files
openbabel: prepare for llvm-21
Ref: #13915 (comment) Signed-off-by: David Korczynski <[email protected]>
1 parent 1e77a78 commit 2ff431b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

projects/openbabel/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
#
1616
################################################################################
1717

18+
export CXXFLAGS="${CXXFLAGS} -std=c++17"
19+
sed -i 's/CMAKE_CXX_STANDARD 11/CMAKE_CXX_STANDARD 17/g' CMakeLists.txt
20+
21+
# Remove use of deprecated functions
22+
sed -i 's/std::random/\/\/std::random/g' test/*.cpp
1823

1924
# build project
2025
mkdir build && cd build

0 commit comments

Comments
 (0)