FindPostgreSQL: Find debug lib, imported configs

* Add find_library calls for debug and release
* Set imported configs for corresponding libraries in imported target
* Set debug/optimized in PostgreSQL_LIBRARIES

Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
This commit is contained in:
Andrei Lebedev
2019-05-09 20:17:28 +03:00
committed by Brad King
parent 7024fe33b8
commit 368bcba28a
2 changed files with 51 additions and 13 deletions

View File

@@ -0,0 +1,5 @@
FindPostgreSQL-config-support
-----------------------------
* The :module:`FindPostgreSQL` module learned to find debug and release
variants separately.