aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-07-19 00:33:07 +0200
committerShauren <shauren.trinity@gmail.com>2022-07-19 00:33:07 +0200
commite9152679d78c456e05be3743d7fed308c8304555 (patch)
tree131597b20285646132be248737c3caedbf228d33 /CMakeLists.txt
parent763c758969447d7164c62f78d2e18978c929956c (diff)
Build: Fixed finding mysql binary on first cmake run
Closes #28133
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4bd17f2c429..6ce6cb4be62 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -78,6 +78,9 @@ if(NOT WITHOUT_GIT)
find_package(Git 1.7)
endif()
+# find mysql client binary (needed by genrev)
+find_package(MySQL OPTIONAL_COMPONENTS binary)
+
# Find revision ID and hash of the sourcetree
include(cmake/genrev.cmake)