diff options
author | Naios <naios-dev@live.de> | 2015-03-29 16:08:28 +0200 |
---|---|---|
committer | Naios <naios-dev@live.de> | 2015-03-29 16:08:28 +0200 |
commit | c386711972260aa7b877cdc8cb49d24576ce1902 (patch) | |
tree | c1727d0705d648f1bb9366919b0898c5e7b10be8 /cmake/options.cmake | |
parent | c61fac843b86f584f913dd21c256a626668df756 (diff) |
CMake: Use source_groups to represent the source tree
* It let ide's (like vs) display the source tree.
* Disabled by default.
* Soft requirement is cmake >= 2.8.12 .
* Offers 2 modes: flat & hierarchical.
* For detailed description see #14471
* Thanks @click for help and advises.
* Closes #14471
Diffstat (limited to 'cmake/options.cmake')
-rw-r--r-- | cmake/options.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/options.cmake b/cmake/options.cmake index 83783fdc1b6..486cc909605 100644 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -15,4 +15,6 @@ option(USE_SCRIPTPCH "Use precompiled headers when compiling scripts" option(USE_COREPCH "Use precompiled headers when compiling servers" 1) option(WITH_WARNINGS "Show all warnings during compile" 0) option(WITH_COREDEBUG "Include additional debug-code in core" 0) +set(WITH_SOURCE_TREE "no" CACHE STRING "Build the source tree for IDE's.") +set_property(CACHE WITH_SOURCE_TREE PROPERTY STRINGS no flat hierarchical) option(WITHOUT_GIT "Disable the GIT testing routines" 0) |