Giter VIP home page Giter VIP logo

Comments (1)

kdato avatar kdato commented on June 3, 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!

from rapidjson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.