Skip to content

Commit

Permalink
(#8434) Added option to disable stack protection for SQLiteCpp
Browse files Browse the repository at this point in the history
  • Loading branch information
maximiliank authored Dec 20, 2021
1 parent b80d738 commit 3cf049e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes/sqlitecpp/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ class SQLiteCppConan(ConanFile):
"shared": [True, False],
"fPIC": [True, False],
"lint": [True, False, "deprecated"],
"stack_protection": [True, False]
}
default_options = {
"shared": False,
"fPIC": True,
"lint": "deprecated",
"stack_protection": True
}

exports_sources = ["CMakeLists.txt", "patches/*"]
Expand Down Expand Up @@ -86,6 +88,7 @@ def _configure_cmake(self):
self._cmake.definitions["SQLITECPP_RUN_DOXYGEN"] = False
self._cmake.definitions["SQLITECPP_BUILD_EXAMPLES"] = False
self._cmake.definitions["SQLITECPP_BUILD_TESTS"] = False
self._cmake.definitions["SQLITECPP_USE_STACK_PROTECTION"] = self.options.stack_protection
self._cmake.configure(build_folder=self._build_subfolder)
return self._cmake

Expand Down

0 comments on commit 3cf049e

Please sign in to comment.