$ cmake -B build-by-cmake-2 -G Ninja -DCMAKE_C_COMPILER=gcc-15 -DCMAKE_CXX_COMPILER=g++-15 -DFETCHCONTENT_QUIET=OFF -DFETCHCONTENT_FULL_VERBOSE=ON
CMake Warning:
This project has been configured with a project file other than
CMakeLists.txt. This feature is intended for temporary use during
development and not for publication of a final product.
-- Populating oatpp
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/oatpp-subbuild
[0/7] Performing update step for 'oatpp-populate'
-- Fetching latest from the remote origin
[1/7] No patch step for 'oatpp-populate'
[3/7] No configure step for 'oatpp-populate'
[4/7] No build step for 'oatpp-populate'
[5/7] No install step for 'oatpp-populate'
[6/7] No test step for 'oatpp-populate'
[7/7] Completed 'oatpp-populate'
############################################################################
## oatpp module compilation config:
OATPP_DISABLE_ENV_OBJECT_COUNTERS=OFF
OATPP_THREAD_HARDWARE_CONCURRENCY=AUTO
OATPP_COMPAT_BUILD_NO_THREAD_LOCAL=OFF
############################################################################
oatpp version: '1.4.0'
OATPP_ADD_LINK_LIBS=atomic
############################################################################
## oatpp-module-install.cmake
OATPP_THIS_MODULE_NAME=oatpp
OATPP_THIS_MODULE_VERSION=1.4.0
OATPP_THIS_MODULE_LIBRARIES=oatpp;oatpp-test
OATPP_THIS_MODULE_TARGETS=oatpp;oatpp-test
OATPP_THIS_MODULE_DIRECTORIES=oatpp;oatpp-test
############################################################################
-- Populating opentelemetry-cpp
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/opentelemetry-cpp-subbuild
[0/8] Performing download step (git clone) for 'opentelemetry-cpp-populate'
Cloning into 'opentelemetry-cpp-src'...
remote: Enumerating objects: 13619, done.
remote: Counting objects: 100% (13619/13619), done.
remote: Compressing objects: 100% (6569/6569), done.
remote: Total 13619 (delta 8952), reused 9598 (delta 5946), pack-reused 0 (from 0)
Receiving objects: 100% (13619/13619), 6.26 MiB | 4.27 MiB/s, done.
Resolving deltas: 100% (8952/8952), done.
Already on 'main'
Your branch is up to date with 'origin/main'.
Submodule 'third_party/benchmark' (https://github.com/google/benchmark) registered for path 'third_party/benchmark'
Submodule 'third_party/googletest' (https://github.com/google/googletest) registered for path 'third_party/googletest'
Submodule 'third_party/ms-gsl' (https://github.com/microsoft/GSL) registered for path 'third_party/ms-gsl'
Submodule 'third_party/nlohmann-json' (https://github.com/nlohmann/json) registered for path 'third_party/nlohmann-json'
Submodule 'third_party/opentelemetry-proto' (https://github.com/open-telemetry/opentelemetry-proto) registered for path 'third_party/opentelemetry-proto'
Submodule 'third_party/opentracing-cpp' (https://github.com/opentracing/opentracing-cpp.git) registered for path 'third_party/opentracing-cpp'
Submodule 'third_party/prometheus-cpp' (https://github.com/jupp0r/prometheus-cpp) registered for path 'third_party/prometheus-cpp'
Submodule 'tools/vcpkg' (https://github.com/Microsoft/vcpkg) registered for path 'tools/vcpkg'
Cloning into '/home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/opentelemetry-cpp-src/third_party/benchmark'...
Cloning into '/home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/opentelemetry-cpp-src/third_party/opentracing-cpp'...
Cloning into '/home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/opentelemetry-cpp-src/third_party/prometheus-cpp'...
Cloning into '/home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/opentelemetry-cpp-src/third_party/opentelemetry-proto'...
Cloning into '/home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/opentelemetry-cpp-src/third_party/ms-gsl'...
Cloning into '/home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/opentelemetry-cpp-src/third_party/googletest'...
Cloning into '/home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/opentelemetry-cpp-src/third_party/nlohmann-json'...
Cloning into '/home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/opentelemetry-cpp-src/tools/vcpkg'...
Submodule path 'third_party/benchmark': checked out '344117638c8ff7e239044fd0fa7085839fc03021'
Submodule path 'third_party/googletest': checked out 'f8d7d77c06936315286eb55f8de22cd23c188571'
Submodule path 'third_party/ms-gsl': checked out '6f4529395c5b7c2d661812257cd6780c67e54afa'
Submodule path 'third_party/nlohmann-json': checked out '55f93686c01528224f448c19128836e7df245f72'
Submodule path 'third_party/opentelemetry-proto': checked out '8654ab7a5a43ca25fe8046e59dcd6935c3f76de0'
Submodule path 'third_party/opentracing-cpp': checked out '06b57f48ded1fa3bdd3d4346f6ef29e40e08eaf5'
Submodule path 'third_party/prometheus-cpp': checked out 'e5fada43131d251e9c4786b04263ce98b6767ba5'
Submodule 'civetweb' (https://github.com/civetweb/civetweb.git) registered for path 'third_party/prometheus-cpp/3rdparty/civetweb'
Submodule 'googletest' (https://github.com/google/googletest.git) registered for path 'third_party/prometheus-cpp/3rdparty/googletest'
Cloning into '/home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/opentelemetry-cpp-src/third_party/prometheus-cpp/3rdparty/civetweb'...
Cloning into '/home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/opentelemetry-cpp-src/third_party/prometheus-cpp/3rdparty/googletest'...
Submodule path 'third_party/prometheus-cpp/3rdparty/civetweb': checked out 'd7ba35bbb649209c66e582d5a0244ba988a15159'
Submodule path 'third_party/prometheus-cpp/3rdparty/googletest': checked out 'e2239ee6043f73722e7aa812a459f54a28552929'
Submodule path 'tools/vcpkg': checked out 'fba75d09065fcc76a25dcf386b1d00d33f5175af'
[1/8] Performing update step for 'opentelemetry-cpp-populate'
-- Fetching latest from the remote origin
Fetching submodule third_party/benchmark
Fetching submodule tools/vcpkg
Fetching submodule third_party/googletest
Fetching submodule third_party/ms-gsl
Fetching submodule third_party/nlohmann-json
Fetching submodule third_party/opentelemetry-proto
Fetching submodule third_party/opentracing-cpp
Fetching submodule third_party/prometheus-cpp
Fetching submodule third_party/prometheus-cpp/3rdparty/civetweb
Fetching submodule third_party/prometheus-cpp/3rdparty/googletest
[2/8] No patch step for 'opentelemetry-cpp-populate'
[4/8] No configure step for 'opentelemetry-cpp-populate'
[5/8] No build step for 'opentelemetry-cpp-populate'
[6/8] No install step for 'opentelemetry-cpp-populate'
[7/8] No test step for 'opentelemetry-cpp-populate'
[8/8] Completed 'opentelemetry-cpp-populate'
CMake Deprecation Warning at build-by-cmake-2/_deps/opentelemetry-cpp-src/CMakeLists.txt:9 (cmake_policy):
The OLD behavior for policy CMP0092 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Populating googletest
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/googletest-subbuild
[1/9] Creating directories for 'googletest-populate'
[1/9] No download step for 'googletest-populate'
[2/9] No update step for 'googletest-populate'
[3/9] No patch step for 'googletest-populate'
[5/9] No configure step for 'googletest-populate'
[6/9] No build step for 'googletest-populate'
[7/9] No install step for 'googletest-populate'
[8/9] No test step for 'googletest-populate'
[9/9] Completed 'googletest-populate'
-- Populating benchmark
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2/_deps/benchmark-subbuild
[1/9] Creating directories for 'benchmark-populate'
[1/9] No download step for 'benchmark-populate'
[2/9] No update step for 'benchmark-populate'
[3/9] No patch step for 'benchmark-populate'
[5/9] No configure step for 'benchmark-populate'
[6/9] No build step for 'benchmark-populate'
[7/9] No install step for 'benchmark-populate'
[8/9] No test step for 'benchmark-populate'
[9/9] Completed 'benchmark-populate'
-- Failed to find LLVM FileCheck
-- git version: v1.8.3 normalized to 1.8.3
-- Google Benchmark version: 1.8.3
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Performing Test HAVE_PTHREAD_AFFINITY -- success
-- ---------------------------------------------
-- build settings
-- ---------------------------------------------
-- OpenTelemetry VERSION: 1.23.0-dev
-- OpenTelemetry ABI: 1
-- CMAKE_SYSTEM_PROCESSOR: x86_64
-- CXX: GNU 15.2.0
-- CMAKE_BUILD_TYPE:
-- CXXFLAGS:
-- CMAKE_CXX_STANDARD:
-- CMAKE_TOOLCHAIN_FILE: /home/anlexn/workspace/github.com/anlexN/vcpkg/scripts/buildsystems/vcpkg.cmake
-- BUILD_SHARED_LIBS: OFF
-- ---------------------------------------------
-- opentelemetry-cpp build options
-- ---------------------------------------------
-- WITH_API_ONLY: OFF
-- WITH_NO_DEPRECATED_CODE: OFF
-- WITH_ABI_VERSION_1: ON
-- WITH_ABI_VERSION_2: OFF
-- OTELCPP_VERSIONED_LIBS: OFF
-- OTELCPP_MAINTAINER_MODE: OFF
-- WITH_STL: OFF
-- WITH_GSL: OFF
-- WITH_NO_GETENV: OFF
-- ---------------------------------------------
-- opentelemetry-cpp cmake component options
-- ---------------------------------------------
-- WITH_OTLP_GRPC: OFF
-- WITH_OTLP_HTTP: OFF
-- WITH_OTLP_FILE: OFF
-- WITH_HTTP_CLIENT_CURL: OFF
-- WITH_ZIPKIN: OFF
-- WITH_PROMETHEUS: OFF
-- WITH_ELASTICSEARCH: OFF
-- WITH_OPENTRACING: OFF
-- WITH_ETW:
-- OPENTELEMETRY_BUILD_DLL:
-- ---------------------------------------------
-- feature preview options
-- ---------------------------------------------
-- WITH_ASYNC_EXPORT_PREVIEW: OFF
-- WITH_THREAD_INSTRUMENTATION_PREVIEW: OFF
-- WITH_METRICS_EXEMPLAR_PREVIEW: OFF
-- WITH_OTLP_GRPC_SSL_MTLS_PREVIEW: OFF
-- WITH_OTLP_GRPC_CREDENTIAL_PREVIEW: OFF
-- WITH_OTLP_RETRY_PREVIEW: OFF
-- ---------------------------------------------
-- third-party options
-- ---------------------------------------------
-- WITH_NLOHMANN_JSON: OFF
-- WITH_CURL_LOGGING: OFF
-- WITH_OTLP_HTTP_COMPRESSION: OFF
-- ---------------------------------------------
-- examples and test options
-- ---------------------------------------------
-- WITH_BENCHMARK: ON
-- WITH_EXAMPLES: ON
-- WITH_EXAMPLES_HTTP: OFF
-- WITH_FUNC_TESTS: ON
-- BUILD_W3CTRACECONTEXT_TEST: OFF
-- BUILD_TESTING: ON
-- ---------------------------------------------
-- versions
-- ---------------------------------------------
-- CMake: 4.1.1
-- GTest: 1.14.0 (fetch_source)
-- benchmark: 1.8.3 (fetch_source)
-- ---------------------------------------------
-- Building WITH_STL=OFF
-- Configuring done (350.9s)
-- Generating done (4.7s)
-- Build files have been written to: /home/anlexn/workspace/github.com/anlexN/otel-cpp-starter/roll-dice/build-by-cmake-2
my CMakeLists.txt:
cmake_minimum_required(VERSION 3.10)
project(RollDiceServer)
include(FetchContent)
FetchContent_Declare(
oatpp
GIT_REPOSITORY https://github.com/oatpp/oatpp.git
GIT_TAG master
GIT_SHALLOW true
GIT_PROGRESS true
)
FetchContent_Declare(
opentelemetry-cpp
GIT_REPOSITORY https://github.com/open-telemetry/opentelemetry-cpp.git
GIT_TAG main
GIT_SHALLOW true
GIT_PROGRESS true
GIT_CONFIG
submodule.recurse=true
submodule.fetchJobs=8
checkout.workers=8
fetch.parallel=8
http.maxRequests=8
submodule.third_party/prometheus-cpp.shallow=true
submodule.tools/vcpkg.shallow=true
submodule.third_party/ms-gsl.shallow=true
submodule.third_party/googletest.shallow=true
submodule.third_party/benchmark.shallow=true
submodule.third_party/nlohmann-json.shallow=true
submodule.third_party/opentracing-cpp.shallow=true
)
FetchContent_MakeAvailable(oatpp opentelemetry-cpp)
add_executable(dice-server main.cpp)
target_link_libraries(dice-server PRIVATE oatpp opentelemetry-cpp)
I make sure that all submodules are downloaded successfully, but those submodules still have all git history. why?