Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt22
1 files changed, 5 insertions, 17 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 176c610be..09f0aa4fd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,7 +35,6 @@ list(APPEND CMAKE_MODULE_PATH
include(pkg-utils)
include(project-utils)
-include(GNUInstallDirs)
option(tests "Build tests" OFF)
@@ -63,21 +62,6 @@ endif()
include(compiler)
include(os)
-if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
- if(UNIX)
- # Use default GNU location
- set(DEFAULT_LIBDIR "${CMAKE_INSTALL_LIBDIR}/mumble")
- else()
- # Default to current directory
- set(DEFAULT_LIBDIR "./lib/mumble")
- endif()
-else()
- # Use a path relative to the prefix
- set(DEFAULT_LIBDIR "${CMAKE_INSTALL_PREFIX}/lib/mumble")
-endif()
-
-set(MUMBLE_INSTALL_LIBDIR "${DEFAULT_LIBDIR}" CACHE STRING "The path to which Mumble will install its plugins")
-
if (64_BIT)
set(ARCH "64bit")
else()
@@ -94,8 +78,10 @@ else()
endif()
message(STATUS "##################################################")
+include(install-paths)
+
# We have to check for BUILD_TESTING before including CTest as CTest defines this variable
-if(DEFINED BUILD_TESTING)
+if(DEFINED BUILD_TESTING AND NOT BUILD_TESTING_CHECKED)
message(WARNING "Use of option \"BUILD_TESTING\" is deprecated. Use \"tests\" instead.")
if(NOT tests)
@@ -104,6 +90,8 @@ if(DEFINED BUILD_TESTING)
endif()
endif()
+set(BUILD_TESTING_CHECKED ON INTERNAL CACHE BOOL "Persistent helper variable" FORCE)
+
if(tests)
include(CTest)
endif()