aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2019-10-11 19:06:05 +0200
committerFriedrich W. H. Kossebau <kossebau@kde.org>2019-10-11 19:06:05 +0200
commit1fd35ecb98adcab179ba9bfccd85ca665a363537 (patch)
treea8bb6b6f9e0aacaf05c0bd53cbec5cd5ef3adcd1 /modules
parentcff5a6ddf6bfa115ef9bcccb486408c5eb208e20 (diff)
downloadextra-cmake-modules-1fd35ecb98adcab179ba9bfccd85ca665a363537.tar.gz
extra-cmake-modules-1fd35ecb98adcab179ba9bfccd85ca665a363537.tar.bz2
ECMGenerateExportHeader: adapt too small DEPRECATED_BASE_VERSION, not fail
More friendly to users which mix arguments DEPRECATED_BASE_VERSION & EXCLUDE_DEPRECATED_BEFORE_AND_AT, but e.g. allow the latter to be configured during library build setup GIT_SILENT
Diffstat (limited to 'modules')
-rw-r--r--modules/ECMGenerateExportHeader.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/ECMGenerateExportHeader.cmake b/modules/ECMGenerateExportHeader.cmake
index a86376cf..f7f48eaa 100644
--- a/modules/ECMGenerateExportHeader.cmake
+++ b/modules/ECMGenerateExportHeader.cmake
@@ -457,7 +457,8 @@ function(ecm_generate_export_header target)
set(ARGS_DEPRECATED_BASE_VERSION ${ARGS_VERSION})
endif()
if (ARGS_DEPRECATED_BASE_VERSION VERSION_LESS ARGS_EXCLUDE_DEPRECATED_BEFORE_AND_AT)
- message(FATAL_ERROR "DEPRECATED_BASE_VERSION cannot be lower than EXCLUDE_DEPRECATED_BEFORE_AND_AT when calling ecm_generate_export_header().")
+ message(STATUS "DEPRECATED_BASE_VERSION (${ARGS_DEPRECATED_BASE_VERSION}) was lower than EXCLUDE_DEPRECATED_BEFORE_AND_AT (${ARGS_EXCLUDE_DEPRECATED_BEFORE_AND_AT}) when calling ecm_generate_export_header(), raising to that.")
+ set(ARGS_DEPRECATED_BASE_VERSION "${ARGS_EXCLUDE_DEPRECATED_BEFORE_AND_AT}")
endif()
endif()
if(NOT ARGS_BASE_NAME)