diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-10 09:42:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-10 09:44:14 +0300 |
commit | db9d40b9d36fcbc50900bb6e2e134eb8453c2643 (patch) | |
tree | 23fd74c5e66430e41ca65d542d9e0c9da8437146 /CMakeLists.txt | |
parent | 328a8c68b79daeb74542d3551a3957a4a89731d6 (diff) |
CMake: set compiler-ccache & build-type-init variables as advanced
These settings aren't useful for basic configuration.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 81f28d3c77e..00674809095 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,6 +63,9 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/build_files/cmake/platform") # avoid having empty buildtype if(NOT DEFINED CMAKE_BUILD_TYPE_INIT) set(CMAKE_BUILD_TYPE_INIT "Release") + # Internal logic caches this variable, avoid showing it by default + # since it's easy to accidentally set instead of the build type. + mark_as_advanced(CMAKE_BUILD_TYPE_INIT) endif() # Omit superfluous "Up-to-date" messages. @@ -614,6 +617,7 @@ endif() if(UNIX) # See WITH_WINDOWS_SCCACHE for Windows. option(WITH_COMPILER_CCACHE "Use ccache to improve rebuild times (Works with Ninja, Makefiles and Xcode)" OFF) + mark_as_advanced(WITH_COMPILER_CCACHE) endif() # The following only works with the Ninja generator in CMake >= 3.0. |