Skip to content

Commit

Permalink
soci: fix linking against dependencies with conanv1
Browse files Browse the repository at this point in the history
soci searches for POSTGRESQL_LIBRARIES etc. instead of what conan
defines (PostgreSQL_LIBRARIES).

fixes #11628
  • Loading branch information
Cogitri committed Apr 26, 2023
1 parent a11daf0 commit 59873f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes/soci/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,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):
Expand Down

0 comments on commit 59873f3

Please sign in to comment.