diff --git a/src/plugin/pg/CMakeLists.txt b/src/plugin/pg/CMakeLists.txt index 84714c7f3e26f537c453226a5c508793ebb7723e..8a6662b0d4e0c02036542a97966b23b18f506482 100644 --- a/src/plugin/pg/CMakeLists.txt +++ b/src/plugin/pg/CMakeLists.txt @@ -1,4 +1,6 @@ -include(FindPostgreSQL) +# A special hack for buggy FindPostgreSQL.cmake in Debian/Ubuntu +set(PostgreSQL_ROOT /usr/include/postgresql;/usr/include/postgres) +find_package(PostgreSQL) if (PostgreSQL_FOUND) message(STATUS "box.net.sql(pg): INC=${PostgreSQL_INCLUDE_DIRS}") message(STATUS "box.net.sql(pg): LIBS=${PostgreSQL_LIBRARIES}")