Skip to content

Commit

Permalink
(#19698) oatpp-sqlite: update sqlite3, use transitive_headers, use rm…
Browse files Browse the repository at this point in the history
…_safe

* oatpp-sqlite: update sqlite3, use transitive_headers, use rm_safe

* update sqlite3/3.43.1

* update dependencies

Co-authored-by: Matthieu Darbois <mayeut@users.noreply.github.com>

* update sqlite3

---------

Co-authored-by: Matthieu Darbois <mayeut@users.noreply.github.com>
  • Loading branch information
toge and mayeut authored Feb 14, 2024
1 parent c9662ba commit c05d1e9
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions recipes/oatpp-sqlite/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
from conan.tools.scm import Version
import os

required_conan_version = ">=1.51.1"
required_conan_version = ">=1.53.0"


class OatppsqliteConan(ConanFile):
name = "oatpp-sqlite"
description = "SQLite adapter for oatpp ORM."
license = "Apache-2.0"
homepage = "https://github.com/oatpp/oatpp-sqlite"
url = "https://github.com/conan-io/conan-center-index"
description = "oat++ SQLite library"
homepage = "https://github.com/oatpp/oatpp-sqlite"
topics = ("oat++", "oatpp", "sqlite")

package_type = "library"
settings = "os", "arch", "compiler", "build_type"
options = {
"shared": [True, False],
Expand All @@ -34,17 +34,14 @@ def config_options(self):

def configure(self):
if self.options.shared:
try:
del self.options.fPIC
except Exception:
pass
self.options.rm_safe("fPIC")

def layout(self):
cmake_layout(self, src_folder="src")

def requirements(self):
self.requires(f"oatpp/{self.version}")
self.requires("sqlite3/3.39.4")
self.requires(f"oatpp/{self.version}", transitive_headers=True)
self.requires("sqlite3/3.45.0")

def validate(self):
if self.info.settings.compiler.get_safe("cppstd"):
Expand All @@ -57,8 +54,7 @@ def validate(self):
raise ConanInvalidConfiguration(f"{self.ref} requires GCC >=5")

def source(self):
get(self, **self.conan_data["sources"][self.version],
destination=self.source_folder, strip_root=True)
get(self, **self.conan_data["sources"][self.version], strip_root=True)

def generate(self):
tc = CMakeToolchain(self)
Expand Down

0 comments on commit c05d1e9

Please sign in to comment.