]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/mp-units/cmake.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / mp-units / cmake.patch
diff --git a/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/mp-units/cmake.patch b/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/mp-units/cmake.patch
new file mode 100644 (file)
index 0000000..d5a57ce
--- /dev/null
@@ -0,0 +1,35 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b18a30a96..d89248aa1 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -40,14 +40,24 @@ conan_init(cmake)
+ add_subdirectory(src)
+ # set restrictive compilation warnings
+-set_warnings(mp-units)
++# set_warnings(mp-units)
+ # add unit tests
+-enable_testing()
+-add_subdirectory(test)
++option(BUILD_TESTING "Build tests" OFF)
++if(BUILD_TESTING)
++    set_warnings(mp-units)
++    enable_testing()
++    add_subdirectory(test)
++endif()
+ # add usage example
+-add_subdirectory(example)
+-
++option(BUILD_EXAMPLES "Build usage examples" OFF)
++if(BUILD_EXAMPLES)
++    add_subdirectory(example)
++endif()
+ # generate project documentation
+-add_subdirectory(docs)
++
++option(BUILD_DOCS "Generate docs" OFF)
++if(BUILD_DOCS)
++    add_subdirectory(docs)
++endif()