From 5baa6247a9e436c653c7cc4c3e757a081f9bbc97 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 2 Apr 2015 01:43:05 +0100 Subject: [PATCH] Don't overwrite CMAKE_INSTALL_PREFIX if it has already been set. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)