Migrate to Conan 2.x
This commit is contained in:
parent
8983956fa1
commit
5359a7774e
2
.github/workflows/osrm-backend.yml
vendored
2
.github/workflows/osrm-backend.yml
vendored
@ -529,7 +529,7 @@ jobs:
|
||||
|
||||
python3 -m pip install conan==2.7.1
|
||||
|
||||
conan profile new default --detect
|
||||
conan profile detect --force
|
||||
sed -i '' 's/compiler.cppstd=.*$/compiler.cppstd=20/' ~/.conan/profiles/default
|
||||
|
||||
if [[ "${ENABLE_CONAN}" == "ON" ]]; then
|
||||
|
23
conanfile.py
Normal file
23
conanfile.py
Normal file
@ -0,0 +1,23 @@
|
||||
from conan import ConanFile
|
||||
from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps
|
||||
|
||||
class OsrmConan(ConanFile):
|
||||
settings = "os", "compiler", "build_type", "arch"
|
||||
requires = (
|
||||
"boost/1.85.0",
|
||||
"bzip2/1.0.8",
|
||||
"expat/2.6.2",
|
||||
"lua/5.4.6",
|
||||
"onetbb/2021.12.0",
|
||||
)
|
||||
generators = "CMakeDeps"
|
||||
|
||||
def generate(self):
|
||||
tc = CMakeToolchain(self)
|
||||
tc.variables["CMAKE_CXX_STANDARD"] = "20"
|
||||
tc.generate()
|
||||
|
||||
def build(self):
|
||||
cmake = CMake(self)
|
||||
cmake.configure()
|
||||
cmake.build()
|
Loading…
Reference in New Issue
Block a user