Skip to content

Commit ce8ff12

Browse files
jsoncpp: Fix build (#13088)
This patch ensures that jsoncpp is consistently built with C++17 by modifying CMakeLists.txt to replace CMAKE_CXX_STANDARD 11 with CMAKE_CXX_STANDARD 17.
1 parent 43d3f7a commit ce8ff12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/jsoncpp/build.sh

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

18+
sed -i 's/set(CMAKE_CXX_STANDARD 11)/set(CMAKE_CXX_STANDARD 17)/' CMakeLists.txt
19+
1820
mkdir -p build
1921
cd build
2022
cmake -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_CXX_FLAGS="$CXXFLAGS" \

0 commit comments

Comments
 (0)