Tencent / rapidjson

A fast JSON parser/generator for C++ with both SAX/DOM style API
http://rapidjson.org/
Other
14k stars 3.5k forks source link

New version for googletest #2255

Open EstherWx opened 5 months ago

EstherWx commented 5 months ago

Current googletest is gtest @ ba96d0b, which is 6 years ago. Is it possible to use a newer version?

kdato commented 4 months ago

My issue might be resolved with a newer version of googletest.

Context: I'm on Slackware-current. I need googletest as a dependency for some package. I am installing rapidjson-1.1.0 like so:

cd build cmake \ -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC -Wno-error" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_INSTALL_DIR=/usr/lib64 \ -DCMAKE_BUILD_TYPE=Release .. make

Issue: If I install rapidjson-1.1.0 first, then it compiles fine. If, in contrast, I install gooletest-1.14.0 first, then rapidjson-1.1.0 fails to compile with this error:

rapidjson-1.1.0/travis-doxygen.sh patching file include/rapidjson/internal/regex.h CMake Deprecation Warning at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- The CXX compiler identification is GNU 13.2.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Doxygen: /usr/bin/doxygen (found version "1.10.0") found components: doxygen dot CMake Deprecation Warning at example/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- Found GTestSrc: /usr/src/gtest CMake Warning at /usr/src/gtest/CMakeLists.txt:50 (project): VERSION keyword not followed by a value or was followed by a value that expanded to nothing.

-- The C compiler identification is GNU 13.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found Python3: /usr/bin/python3.9 (found version "3.9.18") found components: Interpreter -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE CMake Error at /usr/src/gtest/CMakeLists.txt:124 (set_target_properties): set_target_properties called with incorrect number of arguments.

CMake Error at /usr/src/gtest/CMakeLists.txt:142 (set_target_properties): set_target_properties called with incorrect number of arguments.

-- Configuring incomplete, errors occurred!