summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2013-05-23 13:36:43 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2013-05-23 13:36:43 +0300
commitdf9972ab5863daa5b8862c4f88b2fe7bc9215048 (patch)
treea3531214d8d27350d720268b103f9f263d4eda6b
parent11199535648364a656f6e55353e6f4177d4fb4c0 (diff)
cmake: bump version requirement to 2.8.9 to make use of CMAKE_POSITION_INDEPENDENT_CODE
CMAKE_POSITION_INDEPENDENT_CODE will tell the build system to automatically use -fPIC / -fPIE when appropriate.
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 401e25f..93cc560 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,9 @@
project(QtGStreamer)
-cmake_minimum_required(VERSION 2.8.4)
+cmake_minimum_required(VERSION 2.8.9)
enable_testing()
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
set(QTGSTREAMER_VERSION 0.10.2.1)