Skip to content
Snippets Groups Projects
Commit c6830501 authored by Reinhard Biegel's avatar Reinhard Biegel
Browse files

Fix OSI conan recipe subdirectory handling

parent f4f25f47
No related branches found
No related tags found
No related merge requests found
################################################################################
# Copyright (c) 2021-2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# Copyright (c) 2021-2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# 2021 ITK Engineering GmbH
#
# This program and the accompanying materials are made available under the
......@@ -36,14 +36,13 @@ class OsiConan(ConanFile):
raise errors.ConanInvalidConfiguration("WORKSPACE environment variable has to be set")
def source(self):
git = tools.Git(folder="osi3")
git = tools.Git()
git.clone("https://github.com/OpenSimulationInterface/open-simulation-interface.git", "v3.5.0", "--recursive")
self.run("find . -maxdepth 1 -name '*.proto' -exec sed -i '2i option cc_enable_arenas = true;' {} \;", win_bash=True, cwd="osi3")
self.run("find . -maxdepth 1 -name '*.proto' -exec sed -i '2i option cc_enable_arenas = true;' {} \;", win_bash=True)
def build(self):
cmake = CMake(self)
cmake.configure(source_folder="osi3",
defs={
cmake.configure(defs={
"CMAKE_INSTALL_PREFIX": "./temp-deploy",
"CMAKE_PREFIX_PATH": f"{environ.get('WORKSPACE')}/deps/protobuf-shared"
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment