From c6e575539a4c0f370df65d15001e7f1b942b7e91 Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Mon, 17 May 2021 11:44:44 +0200 Subject: Clean ECM files after the minimum version change - Remove deprecated version checks - Use VERSION_GREATER_EQUAL --- .../format_version/CMakeLists.txt | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'tests/ECMGenerateExportHeaderTest/format_version') diff --git a/tests/ECMGenerateExportHeaderTest/format_version/CMakeLists.txt b/tests/ECMGenerateExportHeaderTest/format_version/CMakeLists.txt index bcb681d2..428a372a 100644 --- a/tests/ECMGenerateExportHeaderTest/format_version/CMakeLists.txt +++ b/tests/ECMGenerateExportHeaderTest/format_version/CMakeLists.txt @@ -36,11 +36,7 @@ ecm_export_header_format_version(1.2.3 ) assert_var_str_value(_versionstring "1.2.3") -if (NOT CMAKE_VERSION VERSION_LESS 3.13) - assert_var_str_value(_hexnumber "0x10203") -else() - assert_var_str_value(_hexnumber "66051") -endif() +assert_var_str_value(_hexnumber "0x10203") # check some version: no CURRENT_VERSION ecm_export_header_format_version(1.2.3 @@ -49,11 +45,7 @@ ecm_export_header_format_version(1.2.3 ) assert_var_str_value(_versionstring "1.2.3") -if (NOT CMAKE_VERSION VERSION_LESS 3.13) - assert_var_str_value(_hexnumber "0x10203") -else() - assert_var_str_value(_hexnumber "66051") -endif() +assert_var_str_value(_hexnumber "0x10203") # check CURRENT ecm_export_header_format_version(CURRENT @@ -63,10 +55,6 @@ ecm_export_header_format_version(CURRENT ) assert_var_str_value(_versionstring "4.5.6") -if (NOT CMAKE_VERSION VERSION_LESS 3.13) - assert_var_str_value(_hexnumber "0x40506") -else() - assert_var_str_value(_hexnumber "263430") -endif() +assert_var_str_value(_hexnumber "0x40506") add_executable(dummy main.cpp) -- cgit v1.2.1