CMake: Do not limit source_group creation to Xcode and VS

source_group is used by various IDEs, including Qt Creator,
so it makes sense to do that for other generators too.

Amends 06ea3e3994b38e5fe9ac4f33044b0efa1f1be294

Change-Id: I32334d658ea5a74a9e5f2a7fab2c1f531c099901
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit f302a312dcf1005e147193e12fbfc4677aa7af30)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Eike Ziller 2025-04-03 15:39:29 +02:00 committed by Qt Cherry-pick Bot
parent 969fbfb89b
commit 1432788a12

View File

@ -861,11 +861,6 @@ function(_qt_internal_finalize_target_defer target)
endfunction()
function(_qt_internal_finalize_source_groups target)
if(NOT ("${CMAKE_GENERATOR}" STREQUAL "Xcode"
OR "${CMAKE_GENERATOR}" MATCHES "^Visual Studio"))
return()
endif()
get_target_property(sources ${target} SOURCES)
if(NOT sources)
return()