We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecd0c30 commit 1e501c5Copy full SHA for 1e501c5
2 files changed
CMakeLists.txt
@@ -69,7 +69,7 @@ if(WITH_POSTGRESQL)
69
70
set(PostgreSQL_ADDITIONAL_VERSIONS "9.3" "9.2")
71
72
- find_package(PostgreSQL)
+ find_package(PostgreSQL REQUIRED)
73
74
if(PostgreSQL_FOUND)
75
set(SQL_LIBRARIES ${PostgreSQL_LIBRARIES} ${SQL_LIBRARIES})
cmake/FindPostgreSQL.cmake
@@ -169,8 +169,7 @@ endif()
169
# Did we find anything?
170
include(FindPackageHandleStandardArgs)
171
find_package_handle_standard_args(PostgreSQL
172
- REQUIRED_VARS PostgreSQL_LIBRARY
173
- VERSION_VAR PostgreSQL_VERSION_STRING)
+ REQUIRED_VARS PostgreSQL_LIBRARY)
174
set(PostgreSQL_FOUND ${POSTGRESQL_FOUND})
175
176
# Now try to get the include and library path.
0 commit comments