Skip to content

Commit

Permalink
CMake: Update USE_FOLDERS comment in qt_standard_project_setup
Browse files Browse the repository at this point in the history
Mention that CMake 3.26 introduced CMP0143 which enables USE_FOLDERS by
default.

Change-Id: I35deed9838f99f377657ca19a4e6058e1ecbedcf
Reviewed-by: Alexey Edelev <[email protected]>
Reviewed-by: Amir Masoud Abdol <[email protected]>
  • Loading branch information
jobor committed May 26, 2023
1 parent 1538d30 commit 06f117d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/corelib/Qt6CoreMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2834,8 +2834,8 @@ macro(qt6_standard_project_setup)
endif()
endforeach()

# Enable folder support for IDEs. A future CMake version might enable this by default.
# See CMake issue #21695.
# Enable folder support for IDEs. CMake >= 3.26 enables USE_FOLDERS by default but this is
# guarded by CMake policy CMP0143.
get_property(__qt_use_folders GLOBAL PROPERTY USE_FOLDERS)
if(__qt_use_folders OR "${__qt_use_folders}" STREQUAL "")
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
Expand Down

0 comments on commit 06f117d

Please sign in to comment.