rapidjson icon indicating copy to clipboard operation
rapidjson copied to clipboard

Gtest requires C++14, but Rapidjson uses C++11: this breaks building tests

Open barracuda156 opened this issue 2 years ago • 1 comments

Gtest requires C++14, but Rapidjson is set to use C++11 and enforces it. This breaks building tests.

(Edited, because earlier report is irrelevant.)

barracuda156 avatar Feb 01 '23 03:02 barracuda156

For building the tests successfully with Gtest >= 1.13.0 it is sufficient to set -DRAPIDJSON_BUILD_CXX11=OFF and specify CXXFLAGS=-std=c++14.

Could -DRAPIDJSON_BUILD_CXX11=OFF be made the default?

bombadil avatar Apr 21 '24 15:04 bombadil