conanfile.py 930 B

123456789101112131415161718192021222324252627
  1. from conans import ConanFile, CMake
  2. class ExpectedLiteConan(ConanFile):
  3. version = "0.6.2"
  4. name = "expected-lite"
  5. description = "Expected objects for C++11 and later"
  6. license = "Boost Software License - Version 1.0. http://www.boost.org/LICENSE_1_0.txt"
  7. url = "https://github.com/martinmoene/expected-lite.git"
  8. exports_sources = "include/nonstd/*", "CMakeLists.txt", "cmake/*", "LICENSE.txt"
  9. settings = "compiler", "build_type", "arch"
  10. build_policy = "missing"
  11. author = "Martin Moene"
  12. def build(self):
  13. """Avoid warning on build step"""
  14. pass
  15. def package(self):
  16. """Run CMake install"""
  17. cmake = CMake(self)
  18. cmake.definitions["EXPECTED_LITE_OPT_BUILD_TESTS"] = "OFF"
  19. cmake.definitions["EXPECTED_LITE_OPT_BUILD_EXAMPLES"] = "OFF"
  20. cmake.configure()
  21. cmake.install()
  22. def package_info(self):
  23. self.info.header_only()