summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2021-01-12 11:58:44 +0100
committerBrad King <brad.king@kitware.com>2021-01-15 10:33:55 -0500
commit8b066f1a65466ae2dc542b097f877795f386f942 (patch)
tree5664bf3e9c0a17392a17efc1ec5b9207fd4943e2 /Tests
parent6b50b8d947931e63b7173a487d6655ff7743a61b (diff)
downloadcmake-8b066f1a65466ae2dc542b097f877795f386f942.tar.gz
FindPostgreSQL: Add server component
Require the server-specific artifacts only if the Server component is requested. Issue: #17223
Diffstat (limited to 'Tests')
-rw-r--r--Tests/FindPostgreSQL/Test/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/FindPostgreSQL/Test/CMakeLists.txt b/Tests/FindPostgreSQL/Test/CMakeLists.txt
index 374e1477bd..1bc5c56d45 100644
--- a/Tests/FindPostgreSQL/Test/CMakeLists.txt
+++ b/Tests/FindPostgreSQL/Test/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.10)
project(TestFindPostgreSQL C)
include(CTest)
-find_package(PostgreSQL REQUIRED)
+find_package(PostgreSQL REQUIRED COMPONENTS Server)
add_definitions(-DCMAKE_EXPECTED_POSTGRESQL_VERSION="${PostgreSQL_VERSION_STRING}")