diff --git a/recipes/soci/all/conanfile.py b/recipes/soci/all/conanfile.py index 67c572d5ad86b..6b15a39df0e5f 100644 --- a/recipes/soci/all/conanfile.py +++ b/recipes/soci/all/conanfile.py @@ -110,6 +110,8 @@ def source(self): def generate(self): tc = CMakeToolchain(self) + # MacOS @rpath + tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0042"] = "NEW" tc.variables["SOCI_SHARED"] = self.options.shared tc.variables["SOCI_STATIC"] = not self.options.shared tc.variables["SOCI_TESTS"] = False @@ -126,6 +128,9 @@ def generate(self): tc.generate() deps = CMakeDeps(self) + deps.set_property("mysql", "cmake_file_name", "MYSQL") + deps.set_property("libpq", "cmake_file_name", "POSTGRESQL") + deps.set_property("sqlite3", "cmake_file_name", "SQLITE3") deps.generate() def build(self):