GithubHelp home page GithubHelp logo

aminya / cpp_vcpkg_project Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 5.0 160 KB

A production-ready C++ project made with vcpkg

Home Page: https://github.com/aminya/project_options

License: The Unlicense

Dockerfile 24.52% CMake 55.80% C++ 9.35% Makefile 10.32%
vcpkg cpp project template cmake starter production-ready

cpp_vcpkg_project's Introduction

cpp_vcpkg_project

ci codecov

LGTM Has to be set up manually after template is created:

Language grade: C++

About cpp_vcpkg_project

A production-ready C++ project made with vcpkg

More Details

cpp_vcpkg_project's People

Contributors

abeimler avatar aminya avatar clausklein avatar dependabot[bot] avatar feignclaims avatar nejcgalof avatar renovate[bot] avatar spacetown avatar

Stargazers

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

Watchers

 avatar  avatar

cpp_vcpkg_project's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
.devcontainer/Dockerfile
  • ubuntu jammy
github-actions
.github/workflows/auto-clang-format.yml
  • actions/checkout v4
  • DoozyX/clang-format-lint-action v0.16.2
  • EndBug/add-and-commit v9
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/cache v4
  • aminya/setup-cpp v1
  • github/codeql-action v3
  • github/codeql-action v3
  • softprops/action-gh-release v2
  • codecov/codecov-action v4
gitlabci
.gitlab-ci.yml
  • ubuntu 22.04

  • Check this box to trigger a request for Renovate to run again on this repository

the header files are not installed!

see too #1 and https://github.com/ClausKlein/cpp_cmake_project/runs/6312620658?check_suite_focus=true#step:12:50

bash-3.2$ make test
cmake ./ -B ./build -G "Ninja Multi-Config" -DCMAKE_BUILD_TYPE:STRING=Debug -DFEATURE_TESTS:BOOL=ON
-- vcpkg is already installed at /Users/clausklein/vcpkg.
-- Running vcpkg install
Detecting compiler hash for triplet x64-osx...
All requested packages are currently installed.
Restored 0 packages from /Users/clausklein/.cache/vcpkg/archives in 20.68 us. Use --debug to see more details.

Total elapsed time: 2.73 s

The package fmt provides CMake targets:

    find_package(fmt CONFIG REQUIRED)
    target_link_libraries(main PRIVATE fmt::fmt)

    # Or use the header-only version
    find_package(fmt CONFIG REQUIRED)
    target_link_libraries(main PRIVATE fmt::fmt-header-only)

The package catch2 provides CMake targets:

    find_package(Catch2 CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Catch2::Catch2 Catch2::Catch2WithMain)

-- Running vcpkg install - done
-- The default CMAKE_CXX_STANDARD used by external targets and tools is not set yet. Using the latest supported C++ standard that is 20
-- The default CMAKE_C_STANDARD used by external targets and tools is not set yet. Using the latest supported C standard that is 17
-- /usr/local/bin/ccache found and enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/clausklein/Workspace/cpp/cpp_cmake_project/build
cmake --build ./build --config Debug
ninja: no work to do.
(cd build/my_exe/test && ctest -C Debug --output-on-failure)
Test project /Users/clausklein/Workspace/cpp/cpp_cmake_project/build/my_exe/test
    Start 1: my_exe_test
1/1 Test #1: my_exe_test ......................   Passed    0.08 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.09 sec
(cd build/my_header_lib/test && ctest -C Debug --output-on-failure)
Test project /Users/clausklein/Workspace/cpp/cpp_cmake_project/build/my_header_lib/test
    Start 1: some_fun
1/3 Test #1: some_fun .........................   Passed    0.09 sec
    Start 2: some_constexpr_fun
2/3 Test #2: some_constexpr_fun ...............   Passed    0.10 sec
    Start 3: some_constexpr_fun
3/3 Test #3: some_constexpr_fun ...............   Passed    0.10 sec

100% tests passed, 0 tests failed out of 3

Total Test time (real) =   0.30 sec
(cd build/my_lib/test && ctest -C Debug --output-on-failure)
Test project /Users/clausklein/Workspace/cpp/cpp_cmake_project/build/my_lib/test
    Start 1: some_fun
1/3 Test #1: some_fun .........................   Passed    0.09 sec
    Start 2: some_constexpr_fun
2/3 Test #2: some_constexpr_fun ...............   Passed    0.09 sec
    Start 3: some_constexpr_fun
3/3 Test #3: some_constexpr_fun ...............   Passed    0.09 sec

100% tests passed, 0 tests failed out of 3

Total Test time (real) =   0.28 sec
bash-3.2$ ninja -C build install
ninja: Entering directory `build'
[0/1] Install the project...
-- Install configuration: "Debug"
-- Up-to-date: /usr/local/bin/my_exe
-- Installing: /usr/local/lib/libmy_lib.a
-- Up-to-date: /usr/local/share/cpp_vcpkg_project/cpp_vcpkg_projectConfigVersion.cmake
-- Up-to-date: /usr/local/share/cpp_vcpkg_project/cpp_vcpkg_projectConfig.cmake
-- Up-to-date: /usr/local/share/cpp_vcpkg_project/cpp_vcpkg_projectTargets.cmake
-- Up-to-date: /usr/local/share/cpp_vcpkg_project/cpp_vcpkg_projectTargets-debug.cmake
-- Installing: /usr/local/share/cpp_vcpkg_project/usage
-- # The package cpp_vcpkg_project provides the following CMake targets:

    find_package(cpp_vcpkg_project CONFIG REQUIRED)
    target_link_libraries(main PRIVATE  cpp_vcpkg_project::my_exe cpp_vcpkg_project::my_lib cpp_vcpkg_project::my_header_lib cpp_vcpkg_project::project_options cpp_vcpkg_project::project_warnings)
  
bash-3.2$ 

Upvote & Fund

@aminya is using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.

Thank you in advance for helping prioritize & fund our backlog!


Fund with Polar

Missing dependencies in the .devcontainer

When I run the following command in the container (via vscode):
cmake -S ./ -B ./build -G 'Ninja Multi-Config' -DCMAKE_BUILD_TYPE:STRING=Debug -DFEATURE_TESTS:BOOL=ON -DFEATURE_DOCS:BOOL='OFF'
got the error:

Could not find unzip. Please install it (and other dependencies) with:
On Debian and Ubuntu derivatives:
  sudo apt-get install curl zip unzip tar
On recent Red Hat and Fedora derivatives:
  sudo dnf install curl zip unzip tar
On older Red Hat and Fedora derivatives:
  sudo yum install curl zip unzip tar
On SUSE Linux and derivatives:
  sudo zypper install curl zip unzip tar
On Arch Linux and derivatives:
  sudo pacman -S curl zip unzip tar cmake ninja
On Alpine:
  apk add build-base cmake ninja zip unzip curl git
  (and export VCPKG_FORCE_SYSTEM_BINARIES=1)
CMake Error at build/_deps/_project_options-src/src/Vcpkg.cmake:61 (execute_process):
  execute_process last command failed
Call Stack (most recent call first):
  CMakeLists.txt:19 (run_vcpkg)

It looks like the dependencies are missing in the .devcontainer.

Upvote & Fund

@aminya is using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.

Thank you in advance for helping prioritize & fund our backlog!


Fund with Polar

MacOS 12 fails the tests with gcc

https://github.com/aminya/cpp_vcpkg_project/actions/runs/3308620283/jobs/5461139224#step:6:174

-- Build files have been written to: /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/build
task: [build_template] cmake --build ./build --config Debug 
[1/18] Building CXX object my_lib/CMakeFiles/my_lib.dir/Debug/src/my_lib/lib.cpp.o
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/src/my_lib/lib.cpp ...
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/src/my_lib/lib.cpp: FMT_LOCALE=1;CMAKE_INTDIR="Debug"...
[2/18] Linking CXX static library my_lib/Debug/libmy_lib.a
[3/18] Building CXX object my_exe/CMakeFiles/my_exe.dir/Debug/src/main.cpp.o
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_exe/src/main.cpp ...
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_exe/src/main.cpp: FMT_LOCALE=1;CMAKE_INTDIR="Debug"...
[4/18] Linking CXX executable my_exe/Debug/my_exe
FAILED: my_exe/Debug/my_exe 
: && /usr/local/bin/g++-11 -g -isysroot /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -fsanitize=address my_exe/CMakeFiles/my_exe.dir/Debug/src/main.cpp.o -o my_exe/Debug/my_exe  vcpkg_installed/x64-osx/debug/lib/libfmtd.a  --coverage && :
0  0x10ef01ffa  __assert_rtn + 139
1  0x10ed3528d  mach_o::relocatable::Parser<x86_64>::parse(mach_o::relocatable::ParserOptions const&) + 4989
2  0x10ed25f8f  mach_o::relocatable::Parser<x86_64>::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, mach_o::relocatable::ParserOptions const&) + 207
3  0x10ed73404  archive::File<x86_64>::makeObjectFileForMember(archive::File<x86_64>::Entry const*) const + 1268
4  0x10ed72a8b  archive::File<x86_64>::File(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, archive::ParserOptions const&) + 1035
5  0x10ed71c72  archive::parse(unsigned char const*, unsigned long long, char const*, long, ld::File::Ordinal, archive::ParserOptions const&) + 146
6  0x10ed9cc8e  ld::tool::InputFiles::makeFile(Options::FileInfo const&, bool) + 2734
7  0x10ed9ffa0  ___ZN2ld4tool10InputFilesC2ER7Options_block_invoke + 48
8  0x7ff81a27434a  _dispatch_client_callout2 + 8
9  0x7ff81a2858f5  _dispatch_apply_invoke + 213
10  0x7ff81a274317  _dispatch_client_callout + 8
11  0x7ff81a283c0c  _dispatch_root_queue_drain + 673
12  0x7ff81a28425c  _dispatch_worker_thread2 + 160
13  0x7ff81a427f8a  _pthread_wqthread + 256
A linker snapshot was created at:
	/tmp/my_exe-[202](https://github.com/aminya/cpp_vcpkg_project/actions/runs/3308620283/jobs/5461139224#step:6:203)2-10-23-212714.ld-snapshot
ld: Assertion failed: (_file->_atomsArrayCount == computedAtomCount && "more atoms allocated than expected"), function parse, file macho_relocatable_file.cpp, line [206](https://github.com/aminya/cpp_vcpkg_project/actions/runs/3308620283/jobs/5461139224#step:6:207)1.
collect2: error: ld returned 1 exit status
[5/18] Building CXX object my_lib/test/CMakeFiles/my_lib_tests.dir/Debug/tests.cpp.o
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/test/tests.cpp ...
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/test/tests.cpp: CATCH_CONFIG_MAIN=1;DO_NOT_USE_WMAIN=1;CMAKE_INTDIR="Debug"...
[6/18] Building CXX object my_exe/test/CMakeFiles/my_exe_helpers_tests.dir/Debug/tests.cpp.o
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_exe/test/tests.cpp ...
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_exe/test/tests.cpp: CATCH_CONFIG_MAIN=1;DO_NOT_USE_WMAIN=1;FMT_LOCALE=1;CMAKE_INTDIR="Debug"...
[7/18] Building CXX object my_lib/test/constexpr/CMakeFiles/my_lib_constexpr_tests.dir/Debug/constexpr_tests.cpp.o
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/test/constexpr/constexpr_tests.cpp ...
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/test/constexpr/constexpr_tests.cpp: CATCH_CONFIG_MAIN=1;DO_NOT_USE_WMAIN=1;CMAKE_INTDIR="Debug"...
[8/18] Building CXX object my_lib/test/constexpr/CMakeFiles/my_lib_relaxed_constexpr_tests.dir/Debug/constexpr_tests.cpp.o
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/test/constexpr/constexpr_tests.cpp ...
Checking /Users/runner/work/cpp_vcpkg_project/cpp_vcpkg_project/my_lib/test/constexpr/constexpr_tests.cpp: CATCH_CONFIG_MAIN=1;CATCH_CONFIG_RUNTIME_STATIC_REQUIRE=1;DO_NOT_USE_WMAIN=1;CMAKE_INTDIR="Debug"...
ninja: build stopped: subcommand failed.
task: Failed to run task "coverage": task: Failed to run task "build_template": exit status 1
Error: Process completed with exit code 1.

Upvote & Fund

  • I am using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.

  • Thank you in advance for helping prioritize & fund our backlog.

Fund with Polar

the docs are not quite up-to-date and generates warnings

bash-3.2$ make docs 
cmake ./ -B ./build -G "Ninja Multi-Config" -DCMAKE_BUILD_TYPE:STRING=Debug -DFEATURE_DOCS:BOOL=ON -DFEATURE_TESTS:BOOL=OFF
-- vcpkg is already installed at /Users/clausklein/vcpkg.
-- Running vcpkg install
Detecting compiler hash for triplet x64-osx...
The following packages will be built and installed:
    fmt[core]:x64-osx -> 8.1.1#1 -- /Users/clausklein/vcpkg/buildtrees/versioning_/versions/fmt/602d9743b7957c9e82a06d0e81d58637c6df5222
  * vcpkg-cmake[core]:x64-osx -> 2022-01-19 -- /Users/clausklein/vcpkg/buildtrees/versioning_/versions/vcpkg-cmake/b7c050fe60f91dcedef6d87a3f87584151bf8aee
  * vcpkg-cmake-config[core]:x64-osx -> 2022-02-06 -- /Users/clausklein/vcpkg/buildtrees/versioning_/versions/vcpkg-cmake-config/24dc7dfc704406e9f745f033643dc25f56e4ca18
Additional packages (*) will be modified to complete this operation.
Restored 3 packages from /Users/clausklein/.cache/vcpkg/archives in 31.4 ms. Use --debug to see more details.
Starting package 1/3: vcpkg-cmake-config:x64-osx
Installing package vcpkg-cmake-config[core]:x64-osx...
Elapsed time for package vcpkg-cmake-config:x64-osx: 1.857 ms
Starting package 2/3: vcpkg-cmake:x64-osx
Installing package vcpkg-cmake[core]:x64-osx...
Elapsed time for package vcpkg-cmake:x64-osx: 3.244 ms
Starting package 3/3: fmt:x64-osx
Installing package fmt[core]:x64-osx...
Elapsed time for package fmt:x64-osx: 9.997 ms

Total elapsed time: 1.783 s

The package fmt provides CMake targets:

    find_package(fmt CONFIG REQUIRED)
    target_link_libraries(main PRIVATE fmt::fmt)

    # Or use the header-only version
    find_package(fmt CONFIG REQUIRED)
    target_link_libraries(main PRIVATE fmt::fmt-header-only)

-- Running vcpkg install - done
-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- The C compiler identification is AppleClang 13.1.6.13160021
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The default CMAKE_CXX_STANDARD used by external targets and tools is not set yet. Using the latest supported C++ standard that is 20
-- The default CMAKE_C_STANDARD used by external targets and tools is not set yet. Using the latest supported C standard that is 17
-- /usr/local/bin/ccache found and enabled
-- Found Doxygen: /usr/local/bin/doxygen (found version "1.9.3") found components: doxygen dot 
-- Adding `doxygen-docs` target that builds the documentation.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/clausklein/Workspace/cpp/cpp_cmake_project/build
cmake --build ./build --target doxygen-docs --config Debug
[1/1] Generating documentation - entry file: /Users/clausklein/Workspace/cpp/cpp_cmake_project/build/html/index.html
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/building.md:79: warning: Invalid list item found
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/dependencies.md:14: warning: unable to resolve reference to 'docker-instructions' for \ref command
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/dependencies.md:52: warning: found </details> at different nesting level (12) than expected (9)
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/dependencies.md:77: warning: found </details> at different nesting level (12) than expected (9)
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/dependencies.md:121: warning: found </details> at different nesting level (9) than expected (6)
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/dependencies.md:144: warning: found </details> at different nesting level (10) than expected (7)
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/dependencies.md:163: warning: found </details> at different nesting level (10) than expected (7)
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/dependencies.md:182: warning: found </details> at different nesting level (10) than expected (7)
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/dependencies.md:216: warning: end of comment block while expecting command </details>
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/dependencies.md:216: warning: end of comment block while expecting command </details>
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/dependencies.md:216: warning: end of comment block while expecting command </details>
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/dependencies.md:216: warning: end of comment block while expecting command </details>
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/dependencies.md:216: warning: end of comment block while expecting command </details>
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/dependencies.md:216: warning: end of comment block while expecting command </details>
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/docker.md:12: warning: unable to resolve reference to 'dependencies' for \ref command
/Users/clausklein/Workspace/cpp/cpp_cmake_project/docs/docker.md:45: warning: unable to resolve reference to 'build' for \ref command
bash-3.2$ 

Upvote & Fund

  • I am using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.

  • Thank you in advance for helping prioritize & fund our backlog.

Fund with Polar

The vcpkg add_executable() does not work?

bash-3.2$ make test
cmake -B ./build -G "Ninja Multi-Config" -D CMAKE_BUILD_TYPE:STRING=Debug -D FEATURE_TESTS:BOOL=ON
-- vcpkg is already installed at /Users/clausklein/vcpkg.
-- Running vcpkg install
Detecting compiler hash for triplet x64-osx...
The following packages will be built and installed:
    catch2[core]:x64-osx -> 2.13.8 -- /Users/clausklein/vcpkg/buildtrees/versioning_/versions/catch2/b58473cdc953ae1d09f30f0ba1e641c6cc34719f
Restored 1 packages from /Users/clausklein/.cache/vcpkg/archives in 72.84 ms. Use --debug to see more details.
Starting package 1/1: catch2:x64-osx
Installing package catch2[core]:x64-osx...
Elapsed time for package catch2:x64-osx: 24.86 ms

Total elapsed time: 1.845 s

The package fmt provides CMake targets:

    find_package(fmt CONFIG REQUIRED)
    target_link_libraries(main PRIVATE fmt::fmt)

    # Or use the header-only version
    find_package(fmt CONFIG REQUIRED)
    target_link_libraries(main PRIVATE fmt::fmt-header-only)

The package catch2 provides CMake targets:

    find_package(Catch2 CONFIG REQUIRED)
    target_link_libraries(main PRIVATE Catch2::Catch2 Catch2::Catch2WithMain)

-- Running vcpkg install - done
-- /usr/local/bin/ccache found and enabled
-- Configuring done
CMake Error at /Users/clausklein/vcpkg/scripts/buildsystems/vcpkg.cmake:568 (_add_executable):
  Target "my_header_lib_tests" links to target "fmt::fmt-header-only" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
  my_header_lib/test/CMakeLists.txt:11 (add_executable)


CMake Error at /Users/clausklein/vcpkg/scripts/buildsystems/vcpkg.cmake:568 (_add_executable):
  Target "my_header_lib_constexpr_tests" links to target
  "fmt::fmt-header-only" but the target was not found.  Perhaps a
  find_package() call is missing for an IMPORTED target, or an ALIAS target
  is missing?
Call Stack (most recent call first):
  my_header_lib/test/constexpr/CMakeLists.txt:2 (add_executable)


CMake Error at /Users/clausklein/vcpkg/scripts/buildsystems/vcpkg.cmake:568 (_add_executable):
  Target "my_header_lib_relaxed_constexpr_tests" links to target
  "fmt::fmt-header-only" but the target was not found.  Perhaps a
  find_package() call is missing for an IMPORTED target, or an ALIAS target
  is missing?
Call Stack (most recent call first):
  my_header_lib/test/constexpr/CMakeLists.txt:16 (add_executable)


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
make: *** [test] Error 1
bash-3.2$ 

The vcpkg must not installed in source directory!

this files will be used from doxygen and clang-tidy:

|| [5/5] Generating documentation - entry file: /Users/clausklein/Workspace/cpp/cpp_vcpkg_project/build/gcc-release/html/index.html
build/default/vcpkg_installed/x64-osx/include/fmt/format.h|1017| warning: Found ';' while parsing initializer list! (doxygen could be confused by a macro call without semicolon)
build/developer/vcpkg_installed/x64-osx/include/fmt/format.h|1017| warning: Found ';' while parsing initializer list! (doxygen could be confused by a macro call without semicolon)
build/vcpkg_installed/x64-osx/include/fmt/format.h|1017| warning: Found ';' while parsing initializer list! (doxygen could be confused by a macro call without semicolon)
build/developer/vcpkg_installed/x64-osx/include/catch2/internal/catch_clara.hpp|82| warning: Detected potential recursive class relation between class Catch::Clara::Detail::UnaryLambdaTraits and base class Catch::Clara::Detail::UnaryLambdaTraits< decltype(&L::operator())>!
build/developer/vcpkg_installed/x64-osx/include/catch2/internal/catch_clara.hpp|82| warning: Detected potential recursive class relation between class Catch::Clara::Detail::UnaryLambdaTraits and base class UnaryLambdaTraits< decltype(&L::operator())>!
build/developer/vcpkg_installed/x64-osx/include/catch2/internal/catch_clara.hpp|82| warning: Detected potential recursive class relation between class Catch::Clara::Detail::UnaryLambdaTraits and base class Catch::Clara::Detail::UnaryLambdaTraits< decltype(&L::operator())>!
build/developer/vcpkg_installed/x64-osx/include/catch2/internal/catch_clara.hpp|82| warning: Detected potential recursive class relation between class Catch::Clara::Detail::UnaryLambdaTraits and base class UnaryLambdaTraits< decltype(&L::operator())>!
build/default/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class detail::make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/default/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/default/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class detail::make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/default/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/developer/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class detail::make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/developer/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/developer/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class detail::make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/developer/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class detail::make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class detail::make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/default/vcpkg_installed/x64-osx/include/fmt/format.h|4511| warning: no uniquely matching class member found for ...

Upvote & Fund

@aminya is using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.

Thank you in advance for helping prioritize & fund our backlog!


Fund with Polar

The gitlab-ci generates errors

see https://gitlab.com/ClausKlein/cpp_vcpkg_project/-/jobs/4959646661#L2011

(WARNING) Unrecognized GCOV output for /builds/ClausKlein/cpp_vcpkg_project/my_header_lib/test/constexpr/constexpr_tests.cpp
	  branch 58 never executed (fallthrough)
	  branch 59 never executed (throw)
	  branch 61 never executed (fallthrough)
	  branch 62 never executed (throw)
	This is indicative of a gcov output parse error.
	Please report this to the gcovr developers
	at <https://github.com/gcovr/gcovr/issues>.
(WARNING) Exception during parsing:

Upvote & Fund

  • I am using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.

  • Thank you in advance for helping prioritize & fund our backlog.

Fund with Polar

Another example where my_lib is a shared library

It is possible to create another example like my_lib where my_lib is a shared library (.so). I try it, but I have problems when I link it to the tests. It is good practice to test a shared library in this way, or is it better to create a static and shared library, and link a static to the tests?

Upvote & Fund

  • I am using Polar.sh so you can upvote and help fund this issue. The funding is received once the issue is completed & confirmed by you.

  • Thank you in advance for helping prioritize & fund our backlog.

Fund with Polar

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.