diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8f0d04255..af2eb8bee 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -651,7 +651,7 @@ if(BUILD_CLIENT) target_link_libraries(${PROJECT_NAME}${VERSION_MAJOR} ${CURSES_LIBRARIES}) endif() if (USE_POSTGRESQL) - target_link_libraries(${PROJECT_NAME} ${PostgreSQL_LIBRARIES}) + target_link_libraries(${PROJECT_NAME}${VERSION_MAJOR} ${PostgreSQL_LIBRARIES}) endif() if (USE_LEVELDB) target_link_libraries(${PROJECT_NAME}${VERSION_MAJOR} ${LEVELDB_LIBRARY})