summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2015-04-02 01:43:05 +0100
committerPeter Powell <petpow@saberuk.com>2015-04-02 01:43:05 +0100
commit5baa6247a9e436c653c7cc4c3e757a081f9bbc97 (patch)
tree482e913a8824519e27c59b0e1a6c146327f71eba /CMakeLists.txt
parent82f5d1d61d77403ddee3c8da4733153ab731b601 (diff)
Don't overwrite CMAKE_INSTALL_PREFIX if it has already been set.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9759c3c34..5bbca11c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -377,7 +377,7 @@ endif(PERL AND USE_RUN_CC_PL)
# If a INSTDIR was passed in to CMake, use it as the install prefix, otherwise set the default install prefix to the services directory under the user's home directory
if(INSTDIR)
set(CMAKE_INSTALL_PREFIX "${INSTDIR}")
-else(INSTDIR)
+elseif(NOT CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "$ENV{HOME}/services")
endif(INSTDIR)