summaryrefslogtreecommitdiffstats
path: root/Tests/FindPostgreSQL/Test
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2021-01-12 10:58:44 (GMT)
committerBrad King <brad.king@kitware.com>2021-01-15 15:33:55 (GMT)
commit8b066f1a65466ae2dc542b097f877795f386f942 (patch)
tree5664bf3e9c0a17392a17efc1ec5b9207fd4943e2 /Tests/FindPostgreSQL/Test
parent6b50b8d947931e63b7173a487d6655ff7743a61b (diff)
downloadCMake-8b066f1a65466ae2dc542b097f877795f386f942.zip
CMake-8b066f1a65466ae2dc542b097f877795f386f942.tar.gz
CMake-8b066f1a65466ae2dc542b097f877795f386f942.tar.bz2
FindPostgreSQL: Add server component
Require the server-specific artifacts only if the Server component is requested. Issue: #17223
Diffstat (limited to 'Tests/FindPostgreSQL/Test')
-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 374e147..1bc5c56 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}")