Skip to content

Commit

Permalink
Rollback thrift to 0.13.0 (#87)
Browse files Browse the repository at this point in the history
* Rollback thrift to 0.13.0
* Added an option to build shared library for proxyfmu-client (default: shared)
  • Loading branch information
davidhjp01 authored Feb 8, 2023
1 parent b9fca15 commit 93cecf9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ message("Current ${PROJECT_NAME} version: ${CMAKE_PROJECT_VERSION}\n")
# Build settings
# ==============================================================================

set(BUILD_SHARED_LIBS OFF)
option(BUILD_SHARED_LIBS "Build shared libraries instead of static libraries" ON)
option(PROXYFMU_BUILD_TESTS "Build tests" OFF)
option(PROXYFMU_BUILD_EXAMPLES "Build examples" OFF)

Expand Down
9 changes: 8 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,21 @@ class ProxyFmuConan(ConanFile):
requires = (
"cli11/2.3.1",
"fmilibrary/2.3",
"thrift/0.17.0"
"thrift/0.13.0"
)
options = {
"shared": [True, False]
}
default_options = (
"shared=True"
)

def set_version(self):
self.version = tools.load(path.join(self.recipe_folder, "version.txt")).strip()

def configure_cmake(self):
cmake = CMake(self)
cmake.definitions["BUILD_SHARED_LIBS"] = self.options.shared
cmake.configure()
return cmake

Expand Down

0 comments on commit 93cecf9

Please sign in to comment.