Fix to CMake process when the user does not want to use a suffix for the cache and config folders, issues 2427 and 2602

This commit is contained in:
DrSlony
2015-03-11 15:09:08 +01:00
parent a3722e014e
commit 9879b2e2f8
2 changed files with 36 additions and 29 deletions

View File

@@ -23,7 +23,8 @@ endif ()
message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
set (CACHE_NAME_SUFFIX "" CACHE STRING "RawTherapee's cache folder suffix (leave empty to use the default suffix, i.e. latesttag)")
# Examples: "" = ~/.config/RawTherapee, "latesttag" = ~/.config/RawTherapee4.2, "_testing" = ~/.config/RawTherapee_testing
set (CACHE_NAME_SUFFIX "" CACHE STRING "RawTherapee's cache folder suffix")
# By default, we don't use specific processor target, so PROC_TARGET_NUMBER is set to 0. If can specify other values to select specific
# processor targets, which list can be found in ProcessorTargets.cmake.