summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJukka Ojanen <jukka.ojanen@linkotec.net>2015-11-30 18:14:04 +0200
committerJukka Ojanen <jukka.ojanen@linkotec.net>2015-11-30 18:14:04 +0200
commita6e616bb0d5a3777f5bd9880314541880a817d8b (patch)
treefc129a56a74550b08a5979925b2bb74d524a665f
parentae1b59ddd07cb66b0807bc2c7c981ce96c69acea (diff)
downloadffts-a6e616bb0d5a3777f5bd9880314541880a817d8b.zip
ffts-a6e616bb0d5a3777f5bd9880314541880a817d8b.tar.gz
Require CMake >= 2.8.12 to support ALIAS targets
-rw-r--r--CMakeLists.txt15
1 files changed, 2 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6c72b5b..cad094f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
project(ffts C ASM)
@@ -414,18 +414,7 @@ else()
endif(DISABLE_DYNAMIC_CODE)
if(GENERATE_POSITION_INDEPENDENT_CODE)
- if(CMAKE_VERSION VERSION_LESS "2.8.9")
- check_c_compiler_flag(-fPIC HAVE_GCC_PIC)
- if(HAVE_GCC_PIC)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -DPIC")
- check_c_compiler_flag(-fPIE HAVE_GCC_PIE)
- if(HAVE_GCC_PIE)
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIE -DPIE")
- endif(HAVE_GCC_PIE)
- endif(HAVE_GCC_PIC)
- else()
- set(CMAKE_POSITION_INDEPENDENT_CODE ON)
- endif(CMAKE_VERSION VERSION_LESS "2.8.9")
+ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif(GENERATE_POSITION_INDEPENDENT_CODE)
if(ENABLE_SHARED)
OpenPOWER on IntegriCloud