Skip to content

Commit

Permalink
Merge "Fix build of QTuioTouchPlugin with Makefile generator on macOS"
Browse files Browse the repository at this point in the history
  • Loading branch information
jobor authored and Qt CI Bot committed Mar 11, 2021
2 parents d76c0e3 + 82d5092 commit 3d71f17
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmake/QtPluginHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,14 @@ function(qt_internal_add_plugin target)

# Add a custom target with the Qt5 qmake name for a more user friendly ninja experience.
if(arg_OUTPUT_NAME AND NOT TARGET "${output_name}")
add_custom_target("${output_name}")
add_dependencies("${output_name}" "${target}")
# But don't create such a target if it would just differ in case from "${target}"
# and we're not using Ninja. See https://gitlab.kitware.com/cmake/cmake/-/issues/21915
string(TOUPPER "${output_name}" uc_output_name)
string(TOUPPER "${target}" uc_target)
if(NOT uc_output_name STREQUAL uc_target OR CMAKE_GENERATOR MATCHES "^Ninja")
add_custom_target("${output_name}")
add_dependencies("${output_name}" "${target}")
endif()
endif()

if (ANDROID)
Expand Down

0 comments on commit 3d71f17

Please sign in to comment.