CMake module FindPostgreSQL.cmake that comes with Ubuntu and Debian have issues when you use find_package with PostGreSQL. We have a product that needs that and the best we can do is to ship our own version of FindPostgreSQL.cmake.
How can I then override CMake's FindPostgreSQL.cmake with our own without disturbing anything else? The project is found on this github repository