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 Pick-to: 6.9 Change-Id: I32334d658ea5a74a9e5f2a7fab2c1f531c099901 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
6ead92b459
commit
f302a312dc
@ -861,11 +861,6 @@ function(_qt_internal_finalize_target_defer target)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(_qt_internal_finalize_source_groups target)
|
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)
|
get_target_property(sources ${target} SOURCES)
|
||||||
if(NOT sources)
|
if(NOT sources)
|
||||||
return()
|
return()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user