Skip to content

Instantly share code, notes, and snippets.

@torarnv
Created November 11, 2020 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torarnv/a37349a11f3f7943c7de91b249efcfe2 to your computer and use it in GitHub Desktop.
Save torarnv/a37349a11f3f7943c7de91b249efcfe2 to your computer and use it in GitHub Desktop.
diff --git i/src/corelib/Qt6CoreMacros.cmake w/src/corelib/Qt6CoreMacros.cmake
index 0745c60c2d4..4fc9106fc75 100644
--- i/src/corelib/Qt6CoreMacros.cmake
+++ w/src/corelib/Qt6CoreMacros.cmake
@@ -1368,6 +1368,11 @@ function(_qt_internal_setup_startup_target)
set(dependent_target "${dependent_aliased_target}")
endif()
+ if(WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "iOS" OR APPLE)
+ target_link_libraries("${dependent_target}" INTERFACE Qt6::EntryPoint)
+ return()
+ endif()
+
# Check if Core is being built as part of current CMake invocation.
# If it is, that means the Core target scope is global and the same scope should be set for the
# to-be-created Startup target, to avoid creating 100s of local IMPORTED Startup targets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment