aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-09-03 16:22:17 +0100
committerJoão Valverde <j@v6e.pt>2017-09-03 20:13:44 +0000
commita338f87f33559bb9c915a97b614987736d07ff8f (patch)
tree06d71085ccafdb1e54a4cdca0fefeee92f5ccb8b /cmake/modules
parent8390744957984e074b270edb4e996de274ce3a07 (diff)
CMake: Use GNUInstallDirs module instead of our own
Change-Id: I42f62824f226b091ff9bb86ce5c222333f98d783 Reviewed-on: https://code.wireshark.org/review/23379 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/CMakeInstallDirs.cmake93
1 files changed, 0 insertions, 93 deletions
diff --git a/cmake/modules/CMakeInstallDirs.cmake b/cmake/modules/CMakeInstallDirs.cmake
deleted file mode 100644
index 9aef8a21a4..0000000000
--- a/cmake/modules/CMakeInstallDirs.cmake
+++ /dev/null
@@ -1,93 +0,0 @@
-#
-###################################################################
-#
-# Copyright (c) 2006 Frederic Heem, <frederic.heem@telsey.it>
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-#
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in
-# the documentation and/or other materials provided with the
-# distribution.
-#
-# * Neither the name of the <ORGANIZATION> nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-###################################################################
-# - CMakeInstallDirs.cmake
-# This script defines some variables that describe paths needed to install an application:
-# CMAKE_INSTALL_BINDIR
-
-# CMAKE_INSTALL_DATADIR
-# CMAKE_INSTALL_SBINDIR
-# CMAKE_INSTALL_DATADIR
-# CMAKE_INSTALL_SYSCONFDIR
-# CMAKE_INSTALL_LOCALSTATEDIR
-# CMAKE_INSTALL_LIBDIR
-# CMAKE_INSTALL_MANDIR
-
-#Documentation string
-SET(CMAKE_INSTALL_BINDIR_DOC "user executables [PREFIX/bin]")
-SET(CMAKE_INSTALL_SBINDIR_DOC "system admin executables [EPREFIX/sbin]")
-SET(CMAKE_INSTALL_DATADIR_DOC "read-only architecture-independent data [PREFIX/share]")
-SET(CMAKE_INSTALL_SYSCONFDIR_DOC "read-only single-machine data [PREFIX/etc]")
-SET(CMAKE_INSTALL_LOCALSTATEDIR_DOC "modifiable single-machine data [PREFIX/var]")
-SET(CMAKE_INSTALL_LIBDIR_DOC "object code libraries [PREFIX/lib]")
-SET(CMAKE_INSTALL_MANDIR_DOC "man documentation [PREFIX/share/man]")
-
-#Special case for /etc and /var when prefix is /usr
-IF(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr")
- SET(CMAKE_INSTALL_SYSCONFDIR "/etc" CACHE PATH ${CMAKE_INSTALL_SYSCONFDIR_DOC})
- SET(CMAKE_INSTALL_LOCALSTATEDIR "/var" CACHE PATH ${CMAKE_INSTALL_LOCALSTATEDIR_DOC})
-ENDIF(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr")
-
-#General case
-SET(CMAKE_INSTALL_BINDIR "bin"
- CACHE PATH ${CMAKE_INSTALL_BINDIR_DOC})
-SET(CMAKE_INSTALL_SBINDIR "sbin"
- CACHE PATH ${CMAKE_INSTALL_SBINDIR_DOC})
-SET(CMAKE_INSTALL_DATADIR "share"
- CACHE PATH ${CMAKE_INSTALL_DATADIR_DOC})
-SET(CMAKE_INSTALL_SYSCONFDIR "etc"
- CACHE PATH ${CMAKE_INSTALL_SYSCONFDIR_DOC})
-SET(CMAKE_INSTALL_LOCALSTATEDIR "var"
- CACHE PATH ${CMAKE_INSTALL_LOCALSTATEDIR_DOC})
-SET(CMAKE_INSTALL_LIBDIR "lib"
- CACHE PATH ${CMAKE_INSTALL_LIBDIR_DOC})
-SET(CMAKE_INSTALL_MANDIR "share/man"
- CACHE PATH ${CMAKE_INSTALL_MANDIR_DOC})
-
-
-MARK_AS_ADVANCED(
- CMAKE_INSTALL_BINDIR
- CMAKE_INSTALL_SBINDIR
- CMAKE_INSTALL_DATADIR
- CMAKE_INSTALL_SYSCONFDIR
- CMAKE_INSTALL_LOCALSTATEDIR
- CMAKE_INSTALL_LIBDIR
- CMAKE_INSTALL_MANDIR
-)
-
-
-
-