CMP0143.rst 962 B

12345678910111213141516171819202122232425262728293031
  1. CMP0143
  2. -------
  3. .. versionadded:: 3.26
  4. :prop_gbl:`USE_FOLDERS` global property is treated as ``ON`` by default.
  5. When using CMake 3.25 or earlier, :prop_gbl:`USE_FOLDERS` is treated
  6. as ``OFF`` by default unless projects enable the feature. For example:
  7. .. code-block:: cmake
  8. cmake_minimum_required(VERSION 3.25)
  9. project(foobar LANGUAGES CXX)
  10. set_property(GLOBAL PROPERTY USE_FOLDERS ON)
  11. CMake 3.26 and later prefer to enable the feature by default.
  12. Note that it is the policy setting at the `end` of the top level
  13. ``CMakeLists.txt`` file that matters. The policy setting applies globally
  14. to the whole project.
  15. This policy provides compatibility with projects that have not been updated
  16. to expect enabling of folders. Enabling folders causes projects to appear
  17. differently in IDEs.
  18. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.26
  19. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  20. .. include:: STANDARD_ADVICE.txt
  21. .. include:: DEPRECATED.txt