Skip to content

Commit

Permalink
Make use of separate_arguments CMake function
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl committed Feb 27, 2025
1 parent 845b3de commit 8945e5a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmake/find_modules/FindMySQL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,8 @@ else()
string(REGEX REPLACE "${FLAG_REGEX}" "\\1" MySQL_LIBRARIES "${MySQL_LIBRARIES}")

# Convert space-separated string into list
# Note: this will break if paths contain spaces as this doesn't check for quotes
string(REPLACE " " ";" MySQL_INCLUDE_DIRS "${MySQL_INCLUDE_DIRS}")
string(REPLACE " " ";" MySQL_LIBRARIES "${MySQL_LIBRARIES}")
separate_arguments(MySQL_INCLUDE_DIRS NATIVE_COMMAND "${MySQL_INCLUDE_DIRS}")
separate_arguments(MySQL_LIBRARIES NATIVE_COMMAND "${MySQL_LIBRARIES}")
endif()

include(FindPackageHandleStandardArgs)
Expand Down

0 comments on commit 8945e5a

Please sign in to comment.