Skip to content

Commit

Permalink
Fix pkg-name in find_package_handle_standard_args
Browse files Browse the repository at this point in the history
For the MySQL package find_package_handle_standard_args got passed "MYSQL" as the package name, which differs from
the actual package name. Due to this cmake (3.18) emitted a warning.
This commit fixes this issue by also passing "MySQL" to find_package_handle_standard_args.

Fixes pocoproject#3066
  • Loading branch information
Krzmbrzl authored Aug 8, 2020
1 parent 3fc3e5f commit 6eab83c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/FindMySQL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ endif()

set(MYSQL_VERSION ${PC_MYSQL_VERSION})

find_package_handle_standard_args(MYSQL
find_package_handle_standard_args(MySQL
FOUND_VAR MYSQL_FOUND
REQUIRED_VARS
MYSQL_INCLUDE_DIR
MYSQL_LIBRARY
VERSION_VAR MYSQL_VERSION
)

if(MYSQL_FOUND)
set(MYSQL_LIBRARIES ${MYSQL_LIBRARY})
set(MYSQL_INCLUDE_DIRS ${MYSQL_INCLUDE_DIR})
Expand Down

0 comments on commit 6eab83c

Please sign in to comment.