aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2019-10-30 01:52:08 +0100
committerFriedrich W. H. Kossebau <kossebau@kde.org>2019-10-30 01:52:08 +0100
commitbebafb8a2d0030120f8028eae0206c1bf1ba208d (patch)
treed56c927b2b074568941b8479d2fabb5dd0db9a97 /modules
parentfd6e98ba6de89a7f08364bb2ec096a5310c1cde8 (diff)
downloadextra-cmake-modules-bebafb8a2d0030120f8028eae0206c1bf1ba208d.tar.gz
extra-cmake-modules-bebafb8a2d0030120f8028eae0206c1bf1ba208d.tar.bz2
ECMGenerateExportHeader: allow ecm_[..]_format_version wo/ CURRENT_VERSIONv5.64.0-rc1v5.64.0
GIT_SILENT
Diffstat (limited to 'modules')
-rw-r--r--modules/ECMGenerateExportHeader.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ECMGenerateExportHeader.cmake b/modules/ECMGenerateExportHeader.cmake
index 96c1f696..81bf33e3 100644
--- a/modules/ECMGenerateExportHeader.cmake
+++ b/modules/ECMGenerateExportHeader.cmake
@@ -383,14 +383,14 @@ function(ecm_export_header_format_version _version)
)
cmake_parse_arguments(ARGS "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
- if (NOT ARGS_CURRENT_VERSION)
- message(FATAL_ERROR "No CURRENT_VERSION passed when calling ecm_export_header_format_version().")
- endif()
if (NOT ARGS_STRING_VAR AND NOT ARGS_HEXNUMBER_VAR)
message(FATAL_ERROR "No STRING_VAR or HEXNUMBER_VAR passed when calling ecm_export_header_format_version().")
endif()
if(_version STREQUAL "CURRENT")
+ if (NOT ARGS_CURRENT_VERSION )
+ message(FATAL_ERROR "\"CURRENT\" as version value not supported when CURRENT_VERSION not passed on calling ecm_export_header_format_version().")
+ endif()
set(_version ${ARGS_CURRENT_VERSION})
endif()