[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kbibtex/kbibtex/0.8] /: Rewriting CMakeLists.txt for CMake before 3.7
From:       Thomas Fischer <null () kde ! org>
Date:       2018-02-28 20:58:02
Message-ID: E1er8na-0002wT-GM () code ! kde ! org
[Download RAW message or body]

Git commit 32bf659581e1c6a02a6f97bd714b44456c654783 by Thomas Fischer.
Committed on 22/02/2018 at 19:16.
Pushed by thomasfischer into branch 'kbibtex/0.8'.

Rewriting CMakeLists.txt for CMake before 3.7

The file CMakeLists.txt contained the boolean comparison operator
GREATER_EQUAL that was introduced with CMake 3.7. To make the test
work with older CMake versions, it got rewritten into the form
(... EQUAL ...) OR (... GREATER ...)

See also https://cmake.org/cmake/help/v3.7/release/3.7.html
Section 'Commands' regarding 'if()' command.

M  +3    -3    CMakeLists.txt

https://commits.kde.org/kbibtex/32bf659581e1c6a02a6f97bd714b44456c654783

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 35bd5db4..38aeecd7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -109,7 +109,7 @@ ecm_setup_version(
     VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kbibtex-version.h"
 )
 =

-if(${KBIBTEX_VERSION_PATCH} GREATER_EQUAL 50)
+if((${KBIBTEX_VERSION_PATCH} GREATER 50) OR (${KBIBTEX_VERSION_PATCH} EQUA=
L 50))
     # If the version number indicates a pre-release version such as
     # '0.7.90', i.e. a beta version for the major release 0.8,
     # increment release version from 0.7 to 0.8
@@ -117,11 +117,11 @@ if(${KBIBTEX_VERSION_PATCH} GREATER_EQUAL 50)
     set(
         KBIBTEX_RELEASE_VERSION ${KBIBTEX_VERSION_MAJOR}.${KBIBTEX_RELEASE=
_VERSION_MINOR}
     )
-else(${KBIBTEX_VERSION_PATCH} GREATER_EQUAL 50)
+else((${KBIBTEX_VERSION_PATCH} GREATER 50) OR (${KBIBTEX_VERSION_PATCH} EQ=
UAL 50))
     set(
         KBIBTEX_RELEASE_VERSION ${KBIBTEX_VERSION_MAJOR}.${KBIBTEX_VERSION=
_MINOR}
     )
-endif(${KBIBTEX_VERSION_PATCH} GREATER_EQUAL 50)
+endif((${KBIBTEX_VERSION_PATCH} GREATER 50) OR (${KBIBTEX_VERSION_PATCH} E=
QUAL 50))
 =

 option(
     UNITY_BUILD

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic