CMake: Update USE_FOLDERS comment in qt_standard_project_setup
Mention that CMake 3.26 introduced CMP0143 which enables USE_FOLDERS by default. Change-Id: I35deed9838f99f377657ca19a4e6058e1ecbedcf Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
This commit is contained in:
parent
1538d30c76
commit
06f117d7ca
@ -2834,8 +2834,8 @@ macro(qt6_standard_project_setup)
|
|||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
# Enable folder support for IDEs. A future CMake version might enable this by default.
|
# Enable folder support for IDEs. CMake >= 3.26 enables USE_FOLDERS by default but this is
|
||||||
# See CMake issue #21695.
|
# guarded by CMake policy CMP0143.
|
||||||
get_property(__qt_use_folders GLOBAL PROPERTY USE_FOLDERS)
|
get_property(__qt_use_folders GLOBAL PROPERTY USE_FOLDERS)
|
||||||
if(__qt_use_folders OR "${__qt_use_folders}" STREQUAL "")
|
if(__qt_use_folders OR "${__qt_use_folders}" STREQUAL "")
|
||||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user