Skip to content

Commit

Permalink
cereal: handle cross build
Browse files Browse the repository at this point in the history
Co-Authored-By: Uilian Ries <[email protected]>
  • Loading branch information
SpaceIm and uilianries authored Feb 14, 2020
1 parent 9e9318d commit ff361d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes/cereal/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class CerealConan(ConanFile):
url = "https://github.com/conan-io/conan-center-index"
exports_sources = "CMakeLists.txt"
generators = "cmake"
settings = "os"
options = {"thread_safe": [True, False]}
default_options = {"thread_safe": False}
no_copy_source = True
Expand All @@ -37,5 +38,5 @@ def package_id(self):
def package_info(self):
if self.options.thread_safe:
self.cpp_info.defines = ["CEREAL_THREAD_SAFE=1"]
if tools.os_info.is_linux:
if self.settings.os == "Linux":
self.cpp_info.system_libs.append("pthread")

0 comments on commit ff361d1

Please sign in to comment.