浏览代码

cmake: Update min version required to 3.10

Xenofon Karamanos 8 月之前
父节点
当前提交
ad35c24196

+ 0 - 1
cmake/compiler-specific.cmake

@@ -2,7 +2,6 @@
 # common flags and options for the project The flags are defined as INTERFACE
 # properties of the common library The flags are then used by the other
 # libraries and executables
-cmake_minimum_required(VERSION 3.10)
 
 # Define the common flags and options for GCC
 option(PROFILE "Enable profiling" OFF)

+ 0 - 1
cmake/defs.cmake

@@ -2,7 +2,6 @@
 # common flags and options for the project The flags are defined as INTERFACE
 # properties of the common library The flags are then used by the other
 # libraries and executables
-cmake_minimum_required(VERSION 3.10)
 
 add_library(common INTERFACE)
 

+ 4 - 5
cmake/os-specific.cmake

@@ -1,8 +1,7 @@
-# Quite analogous to the Makefile.defs file
-# This file is used to define the common flags and options for the project
-# The flags are defined as INTERFACE properties of the common library
-# The flags are then used by the other libraries and executables
-cmake_minimum_required(VERSION 3.10)
+# Quite analogous to the Makefile.defs file This file is used to define the
+# common flags and options for the project The flags are defined as INTERFACE
+# properties of the common library The flags are then used by the other
+# libraries and executables
 
 set(OS_SPECIFIC_DIR "${CMAKE_SOURCE_DIR}/cmake/os-specific")
 if(CMAKE_SYSTEM_NAME STREQUAL "Linux")

+ 1 - 0
src/modules/CMakeLists.txt

@@ -73,6 +73,7 @@ function(add_module_group group_modules)
         if(POLICY CMP0079)
           cmake_policy(SET CMP0079 NEW)
         endif()
+
         target_link_libraries(${module_name} PRIVATE common_modules)
         target_compile_definitions(
           ${module_name} PRIVATE MOD_NAMEID=${module_name}

+ 0 - 3
src/modules/presence/CMakeLists.txt

@@ -1,6 +1,3 @@
-# 3.12 For libxml2 target
-cmake_minimum_required(VERSION 3.12)
-
 file(GLOB MODULE_SOURCES "*.c")
 
 add_library(${module_name} SHARED ${MODULE_SOURCES})

+ 0 - 3
src/modules/presence_xml/CMakeLists.txt

@@ -1,6 +1,3 @@
-# 3.12 For libxml2 target
-cmake_minimum_required(VERSION 3.12)
-
 file(GLOB MODULE_SOURCES "*.c")
 
 add_library(${module_name} SHARED ${MODULE_SOURCES})

+ 0 - 2
utils/kamctl/CMakeLists.txt

@@ -1,5 +1,3 @@
-cmake_minimum_required(VERSION 3.10)
-
 project(kamailio_utils)
 
 # if(NOT basedir) set(KAMCTL_TMP_DIR "/tmp") else() set(KAMCTL_TMP_DIR