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>
-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")
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
%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}