diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-16 20:44:58 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-16 20:44:58 +0200 |
commit | f9a90e4f8b40e7165f6a3bd42a94fbbe74105c51 (patch) | |
tree | 1f46070230ca274d73fc689925488d7957ee2bd2 /cmake | |
parent | urlfilter: Add FilterTree class (diff) | |
download | smolbote-f9a90e4f8b40e7165f6a3bd42a94fbbe74105c51.tar.xz |
buildconfig: don't overwrite install prefix by default
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/VendorConfig.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/VendorConfig.cmake b/cmake/VendorConfig.cmake index 42e72c8..1e12b33 100644 --- a/cmake/VendorConfig.cmake +++ b/cmake/VendorConfig.cmake @@ -24,7 +24,9 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${CONFIG_CXX_FLAGS} ${CONF set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${CONFIG_CXX_FLAGS} ${CONFIG_CXX_FLAGS_RELEASE}") # Install paths -set(CMAKE_INSTALL_PREFIX ${CONFIG_INSTALL_PREFIX}) +if(NOT CONFIG_INSTALL_PREFIX STREQUAL "") + set(CMAKE_INSTALL_PREFIX ${CONFIG_INSTALL_PREFIX}) +endif() ## Version information, used in src/version.h.in if (EXISTS "${PROJECT_SOURCE_DIR}/.git") |