Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version for googletest #2255

Open
EstherWx opened this issue Jan 22, 2024 · 1 comment
Open

New version for googletest #2255

EstherWx opened this issue Jan 22, 2024 · 1 comment

Comments

@EstherWx
Copy link
Contributor

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

@kdato
Copy link

kdato commented Feb 15, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants