diff --git a/CMakeLists.txt b/CMakeLists.txt index f473e41..255c82f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,7 +107,8 @@ if(ENABLE_POSTGRESQL) include_directories(${PostgreSQL_INCLUDE_DIR}) set(POSTGRESQL_LIBRARY ${PostgreSQL_LIBRARIES}) else() - message(STATUS "PostgreSQL not found!") + message(STATUS "PostgreSQL not found.") + set(POSTGRESQL_LIBRARY "") endif() endif(ENABLE_POSTGRESQL)