FindPostgreSQL.cmake won't work on ubuntu
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Ubuntu 12.04 CMake 2.8.9 Postgresql 9.2.2 I'm trying to get the FindPostgreSQL module to find /usr/include/postgresql/libpq-fe.h . Here's what I have in my CMakeLists.txt : find_package(PostgreSQL REQUIRED) This is the error I get: CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find PostgreSQL (missing: PostgreSQL_TYPE_INCLUDE_DIR) (found version "9.2.2") Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)