packaging, cmake: remove cmake warnings 61/304661/1 accepted/tizen_unified_riscv accepted/tizen/unified/20240124.163241 accepted/tizen/unified/riscv/20240128.235639 accepted/tizen/unified/x/20240205.064103
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 23 Jan 2024 02:33:55 +0000 (11:33 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 23 Jan 2024 02:51:56 +0000 (11:51 +0900)
Remove below cmake warnings:
   CMake Deprecation Warning at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
     Compatibility with CMake < 2.8.12 will be removed from a future version of
     CMake.

     Update the VERSION argument <min> value or use a ...<max> suffix to tell
     CMake that the project does not need compatibility with older versions.

   CMake Warning:
     Manually-specified variables were not used by the project:

       CMAKE_INSTALL_LIBDIR
       INCLUDE_INSTALL_DIR
       LIB_INSTALL_DIR
       LIB_SUFFIX
       SHARE_INSTALL_PREFIX
       SYSCONF_INSTALL_DIR

Change-Id: Ie692763ad2312fd1feb5c2529615aa367b489ff7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
CMakeLists.txt
packaging/initrd-flash.spec

index 79dd33a..01048f8 100644 (file)
@@ -1,4 +1,4 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.9)
 PROJECT(flash-manager C)
 
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE -O2")
index 7499ac5..ffb492d 100644 (file)
@@ -1,6 +1,6 @@
 Name:       initrd-flash
 Summary:    Advanced flash-manager, package for building ramdisk-recovery.img
-Version:    0.0.5
+Version:    0.0.6
 Release:    0
 Group:      System/Utilities
 License:    Apache-2.0
@@ -62,7 +62,8 @@ Provide flash-manager with partition table for flashing image and files of Visio
 
 %build
 
-%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+%cmake . --no-warn-unused-cli \
+        -DCMAKE_INSTALL_PREFIX=%{_prefix} \
         -DINITRD_FLASH_LIBEXEC_DIR=%{init_script_dir} \
         -DINITRD_FLASH_PARTITION_DATA_DIR=%{_hal_datadir} \
         -DINITRD_RECOVERY_INSTALL_DROPIN_DIR=%{initrd_recovery_install_dropin_dir}