diff options
author | Naios <naios-dev@live.de> | 2015-03-29 16:13:22 +0200 |
---|---|---|
committer | Naios <naios-dev@live.de> | 2015-03-29 16:13:22 +0200 |
commit | ed4722b6e6314e9dce920fe90138dc714c734251 (patch) | |
tree | 86be10038d4b7f565dd316835f34e2be574e4f6a /cmake/options.cmake | |
parent | 83bbe00785a7ee7c8141d83bfe94a1415466c64d (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
(cherry picked from commit c386711972260aa7b877cdc8cb49d24576ce1902)
Conflicts:
src/server/authserver/CMakeLists.txt
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 9b0e663d0a9..0bc7c84e66f 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) |