GithubHelp home page GithubHelp logo

qqiangwu / cppship Goto Github PK

View Code? Open in Web Editor NEW
60.0 60.0 4.0 178 KB

Cargo-like build tool for modern cpp

License: Boost Software License 1.0

CMake 6.52% C++ 92.97% C 0.51%
cargo cmake conan cpp modern-cpp

cppship's People

Contributors

qqiangwu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cppship's Issues

compilation error

Because of your -Wall flag,on Linux,with GCC 13.2,I get a compilation error.
I just want to remind you.

/home/limuy/桌面/src/cppship/lib/core/manifest.cpp:130:108: 错误:possibly dangling reference to a temporary [-Werror=dangling-reference]
  130 |                 for (const auto& [key, val] : toml::find_or<toml::table>(dep_config, "options", empty_table)) {
      |                                                                                                            ^
/home/limuy/桌面/src/cppship/lib/core/manifest.cpp:130:73: 附注:the temporary was destroyed at the end of the full expression ‘toml::find_or<std::unordered_map<std::__cxx11::basic_string<char>, basic_value<discard_comments, std::unordered_map, std::vector> >, discard_comments, std::unordered_map, std::vector>((* & dep_config), std::__cxx11::basic_string<char>(((const char*)"options"), std::allocator<char>()), empty_table)’
  130 |                 for (const auto& [key, val] : toml::find_or<toml::table>(dep_config, "options", empty_table)) {
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus:所有的警告都被当作是错误
make[2]: *** [lib/CMakeFiles/cppship_lib.dir/build.make:384:lib/CMakeFiles/cppship_lib.dir/core/manifest.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:116:lib/CMakeFiles/cppship_lib.dir/all] 错误 2
make: *** [Makefile:156:all] 错误 2```

google benchmark not work on clang-12

-------- Installing package benchmark/1.7.1 (3 of 14) --------
benchmark/1.7.1: Building from source
benchmark/1.7.1: Package benchmark/1.7.1:3bfc6cd5aeb188a50f9b2bb020f2dfba2b3aa811
benchmark/1.7.1: Copying sources to build folder
benchmark/1.7.1: Building your package in /home/runner/.conan2/p/t/bench342455b9a3872/b
benchmark/1.7.1: Calling generate()
benchmark/1.7.1: Generators folder: /home/runner/.conan2/p/t/bench342455b9a3872/b/build/Debug/generators
benchmark/1.7.1: CMakeToolchain generated: conan_toolchain.cmake
benchmark/1.7.1: CMakeToolchain generated: CMakePresets.json
benchmark/1.7.1: CMakeToolchain generated: ../../../src/CMakeUserPresets.json
benchmark/1.7.1: Generating aggregated env files
benchmark/1.7.1: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
benchmark/1.7.1: Calling build()
benchmark/1.7.1: Running CMake.configure()
benchmark/1.7.1: RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/runner/.conan2/p/t/bench342455b9a3872/b/build/Debug/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/runner/.conan2/p/t/bench342455b9a3872/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Debug" "/home/runner/.conan2/p/t/bench342455b9a3872/b/src"
-- Using Conan toolchain: /home/runner/.conan2/p/t/bench342455b9a3872/b/build/Debug/generators/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)
-- Conan toolchain: C++ Standard 20 with extensions OFF
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The CXX compiler identification is Clang 13.0.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++-13 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Failed to find LLVM FileCheck
-- Found Git: /usr/bin/git (found version "2.40.0")
-- git version: v0.0.0 normalized to 0.0.0
-- Version: 1.7.1
-- Looking for shm_open in rt
-- Looking for shm_open in rt - found
-- Performing Test HAVE_CXX_FLAG_WALL
-- Performing Test HAVE_CXX_FLAG_WALL - Success
-- Performing Test HAVE_CXX_FLAG_WEXTRA
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test HAVE_CXX_FLAG_WSHADOW
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success
-- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE
-- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC
-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Success
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
-- Performing Test HAVE_CXX_FLAG_WD654
-- Performing Test HAVE_CXX_FLAG_WD654 - Failed
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Success
-- Enabling additional flags: -DINCLUDE_DIRECTORIES=/home/runner/.conan2/p/t/bench342455b9a3872/b/src/include
-- Compiling and running to test HAVE_THREAD_SAFETY_ATTRIBUTES
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_CXX_FLAG_COVERAGE
-- Performing Test HAVE_CXX_FLAG_COVERAGE - Success
-- Performing Test HAVE_CXX_FLAG_STDLIB_LIBCXX
-- Performing Test HAVE_CXX_FLAG_STDLIB_LIBCXX - Success
-- Compiling and running to test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- failed to compile
-- Compiling and running to test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Compiling and running to test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- failed to compile
CMake Error at CMakeLists.txt:312 (message):
Failed to determine the source files for the regular expression backend

use different toolchain

cppship is very perfect.And it solves many problems in cpp development.but i want to know if cppship can change toolchain easily such as unittest or packages manager.if it can't,do you want to finish it in cppship?

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.