From 3c2efbe966a94241b0e112ad6cda2fb527612ded Mon Sep 17 00:00:00 2001 From: Lukasz Gromanowski Date: Mon, 10 Sep 2012 23:03:11 +0300 Subject: [PATCH] Disable "make install" for Debian based linux distributions. Signed-off-by: Lukasz Gromanowski --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index af5128705..d89addbd4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -630,8 +630,8 @@ if (APPLE) include(CPack) endif (APPLE) -if (NOT WIN32) - ## Linux building +if (NOT WIN32 AND NOT DPKG_PROGRAM) + ## Non Debian based Linux building # paths set(BINDIR "${CMAKE_INSTALL_PREFIX}/usr/bin" CACHE PATH "Where to install binaries") set(DATAROOTDIR "${CMAKE_INSTALL_PREFIX}/share" CACHE PATH "Sets the root of data directories to a non-default location")