1
0
Fork 0
forked from lthn/blockchain

Add boost option to disable tests and set C++ standard to C++17 in conanfile.py

This commit is contained in:
snider 2025-10-06 17:23:53 +01:00
parent 5acd82799d
commit c5ebeeca06

View file

@ -15,7 +15,8 @@ class BlockchainConan(ConanFile):
} }
default_options = { default_options = {
"static": False, "static": False,
"testnet": False "testnet": False,
"boost/*:without_test": True
} }
tool_requires = "ccache/4.11" tool_requires = "ccache/4.11"
@ -28,6 +29,10 @@ class BlockchainConan(ConanFile):
"jwt-cpp/0.7.1" "jwt-cpp/0.7.1"
] ]
def configure(self):
if self.settings.compiler.get_safe("cppstd"):
self.settings.compiler.cppstd = "17"
def generate(self): def generate(self):
tc = CMakeToolchain(self) tc = CMakeToolchain(self)
tc.user_presets_path = False tc.user_presets_path = False