From e9ca26506858b6a6324cd9719cdc6285e5c77494 Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 29 Jan 2023 22:08:13 +0100 Subject: [PATCH] fix: Deprecate MINITAR_IGNORE_UNSUPPORTED_TYPES --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f172c3..422a193 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.8..3.22) project(minitar LANGUAGES C VERSION 1.5.0) -option(MINITAR_IGNORE_UNSUPPORTED_TYPES "Skip past entries that have unsupported types instead of panicking" OFF) +option(MINITAR_IGNORE_UNSUPPORTED_TYPES "Skip past entries that have unsupported types instead of panicking (deprecated)" OFF) set(SOURCES src/tar.c @@ -12,7 +12,7 @@ set(SOURCES add_library(minitar STATIC ${SOURCES}) if(MINITAR_IGNORE_UNSUPPORTED_TYPES) -target_compile_definitions(minitar PRIVATE MINITAR_IGNORE_UNSUPPORTED_TYPES) +message(WARNING "MINITAR_IGNORE_UNSUPPORTED_TYPES is deprecated, since there are no unsupported types anymore") endif() target_include_directories(minitar PUBLIC ${CMAKE_CURRENT_LIST_DIR}) # for minitar.h