1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 14:03:13 +02:00

Don't overwrite CMAKE_INSTALL_PREFIX if it has already been set.

This commit is contained in:
Peter Powell
2015-04-02 01:43:05 +01:00
parent 82f5d1d61d
commit 5baa6247a9
+1 -1
View File
@@ -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)