From a6e616bb0d5a3777f5bd9880314541880a817d8b Mon Sep 17 00:00:00 2001 From: Jukka Ojanen Date: Mon, 30 Nov 2015 18:14:04 +0200 Subject: Require CMake >= 2.8.12 to support ALIAS targets --- CMakeLists.txt | 15 ++------------- 1 file 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) -- cgit v1.1