build: don’t clobber user/superproject c++ version #140
pull theuni wants to merge 1 commits into bitcoin-core:master from theuni:optional-c++-std changing 1 files +4 −2-
theuni commented at 4:01 pm on January 30, 2025: contributorThis allows a vendored libmultiprocess to inherit the c++ version from the main project
-
ryanofsky approved
-
TheCharlatan commented at 4:23 pm on January 30, 2025: collaboratorlgtm
-
in CMakeLists.txt:8 in bf07b262ba outdated
4@@ -5,7 +5,9 @@ 5 cmake_minimum_required(VERSION 3.8) 6 7 project("Libmultiprocess" CXX) 8-set(CMAKE_CXX_STANDARD 17) 9+if(NOT DEFINED CMAKE_CXX_STANDARD)
ryanofsky commented at 4:27 pm on January 30, 2025:In commit “build: don’t clobber user/superproject c++ version” (bf07b262ba43a000f7605d050de2b6e39fd350e7)
I’m wondering if you think it might be better to do
0if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) 1 set(CMAKE_CXX_STANDARD 17) 2 set(CMAKE_CXX_STANDARD_REQUIRED YES) 3endif()to handle the CMAKE_CXX_STANDARD and CMAKE_CXX_STANDARD_REQUIRED variables together instead of separately, to avoid clobbering CMAKE_CXX_STANDARD_REQUIRED, and to be more consistent with parent project detection code below.
theuni commented at 6:29 pm on January 30, 2025:Done.
hebasto commented at 6:42 pm on January 30, 2025:Done.
Did you push the correct branch?
theuni commented at 6:49 pm on January 30, 2025:Heh, whoops. Thanks. Fixed.ryanofsky approvedryanofsky commented at 4:28 pm on January 30, 2025: collaboratorI’m wondering if fix suggested below might make more sense. Happy to use whichever fix you prefer.theuni force-pushed on Jan 30, 2025df2153551ebuild: don't clobber user/superproject c++ version
This allows a vendored libmultiprocess to inherit the c++ version from the main project Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
theuni force-pushed on Jan 30, 2025hebasto approvedhebasto commented at 6:54 pm on January 30, 2025: memberACK df2153551e1bb05f9796fae75817051d52b86622.ryanofsky approvedryanofsky commented at 7:19 pm on January 30, 2025: collaboratorCode review ACK df2153551e1bb05f9796fae75817051d52b86622ryanofsky merged this on Jan 30, 2025ryanofsky closed this on Jan 30, 2025
ryanofsky referenced this in commit 8959938ed4 on Feb 3, 2025ryanofsky referenced this in commit 37fb62c3a5 on Feb 4, 2025ryanofsky referenced this in commit 1d75538a32 on Feb 5, 2025ryanofsky referenced this in commit 9437e6846f on Feb 7, 2025ryanofsky referenced this in commit a4a8f7a7ba on Feb 7, 2025ryanofsky referenced this in commit 3a95817ece on Feb 10, 2025Sjors referenced this in commit 6aabfcb615 on Feb 10, 2025Sjors referenced this in commit 1746618e08 on Feb 13, 2025ryanofsky referenced this in commit 83e40d3b52 on Feb 24, 2025ryanofsky referenced this in commit 8619f03ec2 on Feb 24, 2025ryanofsky referenced this in commit cbb7b41c20 on Feb 24, 2025fanquake referenced this in commit 01f7715766 on Feb 25, 2025fanquake referenced this in commit ba0a4391ff on Feb 25, 2025janus referenced this in commit 86cb86b050 on Sep 1, 2025
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin-core/libmultiprocess. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-12-04 19:30 UTC
This is a metadata mirror of the GitHub repository bitcoin-core/libmultiprocess. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-12-04 19:30 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me