summaryrefslogtreecommitdiff
path: root/multimedia/tomahawk/ee4656383a92a78299aff6f8637f174fff328e98.patch
blob: ff8622536c235ebe47e00c22af37a95201b6aad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From ee4656383a92a78299aff6f8637f174fff328e98 Mon Sep 17 00:00:00 2001
From: Pinak Ahuja <pinak.ahuja@gmail.com>
Date: Wed, 2 Sep 2015 14:41:00 +0530
Subject: [PATCH] Compare taglib version properly

---
 CMakeModules/FindTaglib.cmake | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeModules/FindTaglib.cmake b/CMakeModules/FindTaglib.cmake
index e0efbef..f54ff78 100644
--- a/CMakeModules/FindTaglib.cmake
+++ b/CMakeModules/FindTaglib.cmake
@@ -34,10 +34,10 @@ ELSE()
 
 	  exec_program(${TAGLIBCONFIG_EXECUTABLE} ARGS --version RETURN_VALUE _return_VALUE OUTPUT_VARIABLE TAGLIB_VERSION)
 
-	  if(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
+	  if(TAGLIB_VERSION VERSION_LESS "${TAGLIB_MIN_VERSION}")
 		 message(STATUS "TagLib version not found: version searched :${TAGLIB_MIN_VERSION}, found ${TAGLIB_VERSION}")
 		 set(TAGLIB_FOUND FALSE)
-	  else(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
+	  else(TAGLIB_VERSION VERSION_LESS "${TAGLIB_MIN_VERSION}")
 
 		 exec_program(${TAGLIBCONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE TAGLIB_LIBRARIES)
 
@@ -48,7 +48,7 @@ ELSE()
 #			message(STATUS "Found taglib: ${TAGLIB_LIBRARIES}")
 		 endif(TAGLIB_LIBRARIES AND TAGLIB_CFLAGS)
 		 string(REGEX REPLACE " *-I" ";" TAGLIB_INCLUDES "${TAGLIB_CFLAGS}")
-	  endif(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}") 
+	  endif(TAGLIB_VERSION VERSION_LESS "${TAGLIB_MIN_VERSION}")
 	  mark_as_advanced(TAGLIB_CFLAGS TAGLIB_LIBRARIES TAGLIB_INCLUDES)
 
 	else(TAGLIBCONFIG_EXECUTABLE)