0001-Update-to-cmake_minimum_required-VERSION-3.0-to-fix-.patch 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. From 2e9646ffdda80dcffc58d540dfa072c9dc40f858 Mon Sep 17 00:00:00 2001
  2. From: Andy Hu <andy.hu@starfivetech.com>
  3. Date: Thu, 27 Oct 2022 14:40:52 +0800
  4. Subject: [PATCH] Update to cmake_minimum_required (VERSION 3.0) to fix cmake
  5. warning
  6. ---
  7. DDKSource/CI/CMakeLists.txt | 2 +-
  8. DDKSource/CI/mantis/CMakeLists.txt | 2 +-
  9. DDKSource/CI/mantis/mantis_lib/CMakeLists.txt | 2 +-
  10. DDKSource/CI/mantis/mantis_lib/user/CMakeLists.txt | 2 +-
  11. DDKSource/CI/mantis/project.cmake | 2 +-
  12. DDKSource/CI/mantis/regdefs1.0/FindRegDefs.cmake | 2 +-
  13. DDKSource/CMakeLists.txt | 2 +-
  14. DDKSource/ISP_Control/CMakeLists.txt | 2 +-
  15. DDKSource/ISP_Control/ISPC_lib/CMakeLists.txt | 2 +-
  16. DDKSource/ISP_Control/ISPC_lib/FindISPC.cmake | 2 +-
  17. DDKSource/ISP_Control/ISP_api/CMakeLists.txt | 2 +-
  18. DDKSource/ISP_Control/ISP_api/FindISP_API.cmake | 2 +-
  19. DDKSource/Media_Control/CMakeLists.txt | 2 +-
  20. DDKSource/Media_Control/media-ctl/CMakeLists.txt | 2 +-
  21. DDKSource/Media_Control/media-ctl/FindMediaCtrlLib.cmake | 2 +-
  22. DDKSource/build/PerforceUtils.cmake | 2 +-
  23. DDKSource/common/CMakeLists.txt | 2 +-
  24. DDKSource/common/linkedlist/CMakeLists.txt | 2 +-
  25. DDKSource/common/linkedlist/FindLinkedList.cmake | 2 +-
  26. DDKSource/common/stf_common/FindStfCommon.cmake | 2 +-
  27. DDKSource/common/stf_includes/CMakeLists.txt | 2 +-
  28. DDKSource/common/stf_includes/FindStfIncludes.cmake | 2 +-
  29. DDKSource/sensorapi/CMakeLists.txt | 2 +-
  30. DDKSource/sensorapi/FindSensorApi.cmake | 2 +-
  31. DDKSource/startfive_apps/CMakeLists.txt | 2 +-
  32. DDKSource/startfive_apps/StarFiveServer/CMakeLists.txt | 2 +-
  33. DDKSource/test_apps/CMakeLists.txt | 2 +-
  34. DDKSource/test_apps/ISP_test/CMakeLists.txt | 2 +-
  35. DDKSource/test_apps/stf_isp_ctrl/CMakeLists.txt | 2 +-
  36. DDKSource/test_apps/stf_isp_ctrl/FindStf_Isp_Ctrl.cmake | 2 +-
  37. DDKSource/test_apps/stf_isp_test/CMakeLists.txt | 2 +-
  38. DDKSource/test_apps/stf_isp_test/FindStfIspTest.cmake | 2 +-
  39. 32 files changed, 32 insertions(+), 32 deletions(-)
  40. diff --git a/DDKSource/CI/CMakeLists.txt b/DDKSource/CI/CMakeLists.txt
  41. index df372dc..63e5def 100755
  42. --- a/DDKSource/CI/CMakeLists.txt
  43. +++ b/DDKSource/CI/CMakeLists.txt
  44. @@ -1,4 +1,4 @@
  45. -cmake_minimum_required(VERSION 2.8)
  46. +cmake_minimum_required(VERSION 3.0)
  47. project(CAPTURE_INTERFACE)
  48. diff --git a/DDKSource/CI/mantis/CMakeLists.txt b/DDKSource/CI/mantis/CMakeLists.txt
  49. index 75aa4d9..2bd593b 100755
  50. --- a/DDKSource/CI/mantis/CMakeLists.txt
  51. +++ b/DDKSource/CI/mantis/CMakeLists.txt
  52. @@ -1,4 +1,4 @@
  53. -cmake_minimum_required(VERSION 2.8)
  54. +cmake_minimum_required(VERSION 3.0)
  55. project(MANTIS)
  56. diff --git a/DDKSource/CI/mantis/mantis_lib/CMakeLists.txt b/DDKSource/CI/mantis/mantis_lib/CMakeLists.txt
  57. index 9242a5e..76daf4b 100755
  58. --- a/DDKSource/CI/mantis/mantis_lib/CMakeLists.txt
  59. +++ b/DDKSource/CI/mantis/mantis_lib/CMakeLists.txt
  60. @@ -1,4 +1,4 @@
  61. -cmake_minimum_required(VERSION 2.8)
  62. +cmake_minimum_required(VERSION 3.0)
  63. project(MantisLib) # used in FindDG and in driver_test
  64. diff --git a/DDKSource/CI/mantis/mantis_lib/user/CMakeLists.txt b/DDKSource/CI/mantis/mantis_lib/user/CMakeLists.txt
  65. index b1a73d0..e777791 100755
  66. --- a/DDKSource/CI/mantis/mantis_lib/user/CMakeLists.txt
  67. +++ b/DDKSource/CI/mantis/mantis_lib/user/CMakeLists.txt
  68. @@ -1,4 +1,4 @@
  69. -cmake_minimum_required(VERSION 2.8)
  70. +cmake_minimum_required(VERSION 3.0)
  71. set(STFINCLUDES_FORCE_KERNEL FALSE) # this part is not in a kernel module - make sure of it
  72. find_package(StfIncludes REQUIRED)
  73. diff --git a/DDKSource/CI/mantis/project.cmake b/DDKSource/CI/mantis/project.cmake
  74. index 77d2a31..2266ef8 100755
  75. --- a/DDKSource/CI/mantis/project.cmake
  76. +++ b/DDKSource/CI/mantis/project.cmake
  77. @@ -1,4 +1,4 @@
  78. -cmake_minimum_required(VERSION 2.8)
  79. +cmake_minimum_required(VERSION 3.0)
  80. if (NOT CMAKE_BUILD_TYPE)
  81. if (WIN32)
  82. diff --git a/DDKSource/CI/mantis/regdefs1.0/FindRegDefs.cmake b/DDKSource/CI/mantis/regdefs1.0/FindRegDefs.cmake
  83. index 1431189..d450b54 100755
  84. --- a/DDKSource/CI/mantis/regdefs1.0/FindRegDefs.cmake
  85. +++ b/DDKSource/CI/mantis/regdefs1.0/FindRegDefs.cmake
  86. @@ -2,7 +2,7 @@
  87. # Defines the register definitions headers location
  88. #
  89. #
  90. -cmake_minimum_required (VERSION 2.8)
  91. +cmake_minimum_required (VERSION 3.0)
  92. get_filename_component(REGDEF_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
  93. diff --git a/DDKSource/CMakeLists.txt b/DDKSource/CMakeLists.txt
  94. index 9eccacf..d78fd70 100755
  95. --- a/DDKSource/CMakeLists.txt
  96. +++ b/DDKSource/CMakeLists.txt
  97. @@ -1,4 +1,4 @@
  98. -cmake_minimum_required(VERSION 2.8)
  99. +cmake_minimum_required(VERSION 3.0)
  100. set(ISPSDK_VERSION 2.0.1)
  101. diff --git a/DDKSource/ISP_Control/CMakeLists.txt b/DDKSource/ISP_Control/CMakeLists.txt
  102. index 6ae455f..8788e9d 100644
  103. --- a/DDKSource/ISP_Control/CMakeLists.txt
  104. +++ b/DDKSource/ISP_Control/CMakeLists.txt
  105. @@ -1,4 +1,4 @@
  106. -cmake_minimum_required(VERSION 2.8)
  107. +cmake_minimum_required(VERSION 3.0)
  108. project(ISPCONTROL)
  109. diff --git a/DDKSource/ISP_Control/ISPC_lib/CMakeLists.txt b/DDKSource/ISP_Control/ISPC_lib/CMakeLists.txt
  110. index f4c8946..d500060 100755
  111. --- a/DDKSource/ISP_Control/ISPC_lib/CMakeLists.txt
  112. +++ b/DDKSource/ISP_Control/ISPC_lib/CMakeLists.txt
  113. @@ -1,4 +1,4 @@
  114. -cmake_minimum_required(VERSION 2.8)
  115. +cmake_minimum_required(VERSION 3.0)
  116. project(ISPC_LIBRARIES)
  117. diff --git a/DDKSource/ISP_Control/ISPC_lib/FindISPC.cmake b/DDKSource/ISP_Control/ISPC_lib/FindISPC.cmake
  118. index c9ad706..11944d0 100755
  119. --- a/DDKSource/ISP_Control/ISPC_lib/FindISPC.cmake
  120. +++ b/DDKSource/ISP_Control/ISPC_lib/FindISPC.cmake
  121. @@ -1,4 +1,4 @@
  122. -cmake_minimum_required (VERSION 2.8)
  123. +cmake_minimum_required (VERSION 3.0)
  124. get_filename_component (ISPC_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
  125. diff --git a/DDKSource/ISP_Control/ISP_api/CMakeLists.txt b/DDKSource/ISP_Control/ISP_api/CMakeLists.txt
  126. index 50f1289..b960fcf 100644
  127. --- a/DDKSource/ISP_Control/ISP_api/CMakeLists.txt
  128. +++ b/DDKSource/ISP_Control/ISP_api/CMakeLists.txt
  129. @@ -1,4 +1,4 @@
  130. -cmake_minimum_required(VERSION 2.8)
  131. +cmake_minimum_required(VERSION 3.0)
  132. project(ISP_API)
  133. diff --git a/DDKSource/ISP_Control/ISP_api/FindISP_API.cmake b/DDKSource/ISP_Control/ISP_api/FindISP_API.cmake
  134. index bc83c76..90fbac3 100755
  135. --- a/DDKSource/ISP_Control/ISP_api/FindISP_API.cmake
  136. +++ b/DDKSource/ISP_Control/ISP_api/FindISP_API.cmake
  137. @@ -1,4 +1,4 @@
  138. -cmake_minimum_required (VERSION 2.8)
  139. +cmake_minimum_required (VERSION 3.0)
  140. get_filename_component (ISP_API_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
  141. diff --git a/DDKSource/Media_Control/CMakeLists.txt b/DDKSource/Media_Control/CMakeLists.txt
  142. index 7b8cbd0..b8398c0 100644
  143. --- a/DDKSource/Media_Control/CMakeLists.txt
  144. +++ b/DDKSource/Media_Control/CMakeLists.txt
  145. @@ -1,4 +1,4 @@
  146. -cmake_minimum_required(VERSION 2.8)
  147. +cmake_minimum_required(VERSION 3.0)
  148. project(MEDIACTRL)
  149. diff --git a/DDKSource/Media_Control/media-ctl/CMakeLists.txt b/DDKSource/Media_Control/media-ctl/CMakeLists.txt
  150. index f9679c0..deb14b7 100644
  151. --- a/DDKSource/Media_Control/media-ctl/CMakeLists.txt
  152. +++ b/DDKSource/Media_Control/media-ctl/CMakeLists.txt
  153. @@ -1,4 +1,4 @@
  154. -cmake_minimum_required (VERSION 2.8)
  155. +cmake_minimum_required (VERSION 3.0)
  156. project(MEDIACTRLLIB)
  157. diff --git a/DDKSource/Media_Control/media-ctl/FindMediaCtrlLib.cmake b/DDKSource/Media_Control/media-ctl/FindMediaCtrlLib.cmake
  158. index 29ba82c..defcd3a 100644
  159. --- a/DDKSource/Media_Control/media-ctl/FindMediaCtrlLib.cmake
  160. +++ b/DDKSource/Media_Control/media-ctl/FindMediaCtrlLib.cmake
  161. @@ -1,4 +1,4 @@
  162. -cmake_minimum_required (VERSION 2.8)
  163. +cmake_minimum_required (VERSION 3.0)
  164. get_filename_component (MEDIACTRLLIB_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
  165. diff --git a/DDKSource/build/PerforceUtils.cmake b/DDKSource/build/PerforceUtils.cmake
  166. index 0b6a588..85cafe6 100755
  167. --- a/DDKSource/build/PerforceUtils.cmake
  168. +++ b/DDKSource/build/PerforceUtils.cmake
  169. @@ -1,4 +1,4 @@
  170. -cmake_minimum_required(VERSION 2.8)
  171. +cmake_minimum_required(VERSION 3.0)
  172. if(NOT DEFINED P4UTILS_BASE_DIR)
  173. set(P4UTILS_BASE_DIR ${CMAKE_SOURCE_DIR})
  174. diff --git a/DDKSource/common/CMakeLists.txt b/DDKSource/common/CMakeLists.txt
  175. index 7b979bb..14eb516 100755
  176. --- a/DDKSource/common/CMakeLists.txt
  177. +++ b/DDKSource/common/CMakeLists.txt
  178. @@ -1,4 +1,4 @@
  179. -cmake_minimum_required(VERSION 2.8)
  180. +cmake_minimum_required(VERSION 3.0)
  181. message(STATUS "== Common libraries ==")
  182. diff --git a/DDKSource/common/linkedlist/CMakeLists.txt b/DDKSource/common/linkedlist/CMakeLists.txt
  183. index bb118ce..4c6d003 100755
  184. --- a/DDKSource/common/linkedlist/CMakeLists.txt
  185. +++ b/DDKSource/common/linkedlist/CMakeLists.txt
  186. @@ -1,4 +1,4 @@
  187. -cmake_minimum_required(VERSION 2.8)
  188. +cmake_minimum_required(VERSION 3.0)
  189. project (LinkedList)
  190. diff --git a/DDKSource/common/linkedlist/FindLinkedList.cmake b/DDKSource/common/linkedlist/FindLinkedList.cmake
  191. index 1a7e83e..d98cf4c 100755
  192. --- a/DDKSource/common/linkedlist/FindLinkedList.cmake
  193. +++ b/DDKSource/common/linkedlist/FindLinkedList.cmake
  194. @@ -1,4 +1,4 @@
  195. -cmake_minimum_required(VERSION 2.8)
  196. +cmake_minimum_required(VERSION 3.0)
  197. #
  198. # output:
  199. diff --git a/DDKSource/common/stf_common/FindStfCommon.cmake b/DDKSource/common/stf_common/FindStfCommon.cmake
  200. index 5670dcc..c435cf6 100644
  201. --- a/DDKSource/common/stf_common/FindStfCommon.cmake
  202. +++ b/DDKSource/common/stf_common/FindStfCommon.cmake
  203. @@ -1,4 +1,4 @@
  204. -cmake_minimum_required (VERSION 2.8)
  205. +cmake_minimum_required (VERSION 3.0)
  206. get_filename_component (STFCOMMON_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
  207. diff --git a/DDKSource/common/stf_includes/CMakeLists.txt b/DDKSource/common/stf_includes/CMakeLists.txt
  208. index 83bc8d4..bd23011 100755
  209. --- a/DDKSource/common/stf_includes/CMakeLists.txt
  210. +++ b/DDKSource/common/stf_includes/CMakeLists.txt
  211. @@ -1,4 +1,4 @@
  212. -cmake_minimum_required(VERSION 2.8)
  213. +cmake_minimum_required(VERSION 3.0)
  214. project(StfIncludes)
  215. diff --git a/DDKSource/common/stf_includes/FindStfIncludes.cmake b/DDKSource/common/stf_includes/FindStfIncludes.cmake
  216. index 4ac2f29..7877f3f 100755
  217. --- a/DDKSource/common/stf_includes/FindStfIncludes.cmake
  218. +++ b/DDKSource/common/stf_includes/FindStfIncludes.cmake
  219. @@ -1,4 +1,4 @@
  220. -cmake_minimum_required (VERSION 2.8)
  221. +cmake_minimum_required (VERSION 3.0)
  222. # ----------------------------------------------------------------------
  223. # Locate and configure the StfIncludes library.
  224. diff --git a/DDKSource/sensorapi/CMakeLists.txt b/DDKSource/sensorapi/CMakeLists.txt
  225. index 3b0fe09..33fd7e0 100644
  226. --- a/DDKSource/sensorapi/CMakeLists.txt
  227. +++ b/DDKSource/sensorapi/CMakeLists.txt
  228. @@ -1,4 +1,4 @@
  229. -cmake_minimum_required (VERSION 2.8)
  230. +cmake_minimum_required (VERSION 3.0)
  231. project(SENSORAPI)
  232. diff --git a/DDKSource/sensorapi/FindSensorApi.cmake b/DDKSource/sensorapi/FindSensorApi.cmake
  233. index b603886..7ae238c 100644
  234. --- a/DDKSource/sensorapi/FindSensorApi.cmake
  235. +++ b/DDKSource/sensorapi/FindSensorApi.cmake
  236. @@ -1,4 +1,4 @@
  237. -cmake_minimum_required (VERSION 2.8)
  238. +cmake_minimum_required (VERSION 3.0)
  239. get_filename_component (SENSORAPI_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
  240. diff --git a/DDKSource/startfive_apps/CMakeLists.txt b/DDKSource/startfive_apps/CMakeLists.txt
  241. index 418a8e0..45819a2 100755
  242. --- a/DDKSource/startfive_apps/CMakeLists.txt
  243. +++ b/DDKSource/startfive_apps/CMakeLists.txt
  244. @@ -1,4 +1,4 @@
  245. -cmake_minimum_required(VERSION 2.8)
  246. +cmake_minimum_required(VERSION 3.0)
  247. project(startfive_apps)
  248. diff --git a/DDKSource/startfive_apps/StarFiveServer/CMakeLists.txt b/DDKSource/startfive_apps/StarFiveServer/CMakeLists.txt
  249. index bb042a6..f69f734 100755
  250. --- a/DDKSource/startfive_apps/StarFiveServer/CMakeLists.txt
  251. +++ b/DDKSource/startfive_apps/StarFiveServer/CMakeLists.txt
  252. @@ -1,4 +1,4 @@
  253. -cmake_minimum_required(VERSION 2.8)
  254. +cmake_minimum_required(VERSION 3.0)
  255. message(STATUS "== build StarFiveServer ==")
  256. diff --git a/DDKSource/test_apps/CMakeLists.txt b/DDKSource/test_apps/CMakeLists.txt
  257. index 57ef8c1..ae80d73 100755
  258. --- a/DDKSource/test_apps/CMakeLists.txt
  259. +++ b/DDKSource/test_apps/CMakeLists.txt
  260. @@ -1,4 +1,4 @@
  261. -cmake_minimum_required(VERSION 2.8)
  262. +cmake_minimum_required(VERSION 3.0)
  263. project(test_apps)
  264. diff --git a/DDKSource/test_apps/ISP_test/CMakeLists.txt b/DDKSource/test_apps/ISP_test/CMakeLists.txt
  265. index 88de81f..762e620 100644
  266. --- a/DDKSource/test_apps/ISP_test/CMakeLists.txt
  267. +++ b/DDKSource/test_apps/ISP_test/CMakeLists.txt
  268. @@ -1,4 +1,4 @@
  269. -cmake_minimum_required(VERSION 2.8)
  270. +cmake_minimum_required(VERSION 3.0)
  271. get_filename_component (ISP_TEST_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
  272. diff --git a/DDKSource/test_apps/stf_isp_ctrl/CMakeLists.txt b/DDKSource/test_apps/stf_isp_ctrl/CMakeLists.txt
  273. index 083f20a..861f91d 100644
  274. --- a/DDKSource/test_apps/stf_isp_ctrl/CMakeLists.txt
  275. +++ b/DDKSource/test_apps/stf_isp_ctrl/CMakeLists.txt
  276. @@ -1,4 +1,4 @@
  277. -cmake_minimum_required(VERSION 2.8)
  278. +cmake_minimum_required(VERSION 3.0)
  279. project(STF_ISP_CTRL)
  280. diff --git a/DDKSource/test_apps/stf_isp_ctrl/FindStf_Isp_Ctrl.cmake b/DDKSource/test_apps/stf_isp_ctrl/FindStf_Isp_Ctrl.cmake
  281. index 7159164..9be8f90 100755
  282. --- a/DDKSource/test_apps/stf_isp_ctrl/FindStf_Isp_Ctrl.cmake
  283. +++ b/DDKSource/test_apps/stf_isp_ctrl/FindStf_Isp_Ctrl.cmake
  284. @@ -1,4 +1,4 @@
  285. -cmake_minimum_required (VERSION 2.8)
  286. +cmake_minimum_required (VERSION 3.0)
  287. get_filename_component (STF_ISP_CTRL_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
  288. diff --git a/DDKSource/test_apps/stf_isp_test/CMakeLists.txt b/DDKSource/test_apps/stf_isp_test/CMakeLists.txt
  289. index e360553..35607bf 100644
  290. --- a/DDKSource/test_apps/stf_isp_test/CMakeLists.txt
  291. +++ b/DDKSource/test_apps/stf_isp_test/CMakeLists.txt
  292. @@ -1,4 +1,4 @@
  293. -cmake_minimum_required(VERSION 2.8)
  294. +cmake_minimum_required(VERSION 3.0)
  295. project(STF_ISP_TEST)
  296. diff --git a/DDKSource/test_apps/stf_isp_test/FindStfIspTest.cmake b/DDKSource/test_apps/stf_isp_test/FindStfIspTest.cmake
  297. index e082bce..41102ee 100755
  298. --- a/DDKSource/test_apps/stf_isp_test/FindStfIspTest.cmake
  299. +++ b/DDKSource/test_apps/stf_isp_test/FindStfIspTest.cmake
  300. @@ -1,4 +1,4 @@
  301. -cmake_minimum_required (VERSION 2.8)
  302. +cmake_minimum_required (VERSION 3.0)
  303. get_filename_component (STF_ISP_TEST_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
  304. --
  305. 2.36.0