summaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-05-01 18:30:15 -0400
committerTom Rondeau <tom@trondeau.com>2014-05-01 18:30:15 -0400
commit07e6734bab96ca48d5ef004e951a6f6c7284da63 (patch)
treeb1ee5c8a416a3e9cde8bcb8a4b0a60218187d363 /cmake/Modules
parent95c7554d7502e1add5c048f9a372c07f0de80637 (diff)
cmake: better setup for finding QWT; otherwise, it can be forced to incorrectly "find" non-existent QWT libs.
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/FindQwt.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/Modules/FindQwt.cmake b/cmake/Modules/FindQwt.cmake
index 82f0780deb..b23ecdfa6a 100644
--- a/cmake/Modules/FindQwt.cmake
+++ b/cmake/Modules/FindQwt.cmake
@@ -37,6 +37,8 @@ set(QWT_FOUND FALSE)
if(QWT_INCLUDE_DIRS)
file(STRINGS "${QWT_INCLUDE_DIRS}/qwt_global.h"
QWT_STRING_VERSION REGEX "QWT_VERSION_STR")
+ set(QWT_WRONG_VERSION True)
+ set(QWT_VERSION "No Version")
string(REGEX MATCH "[0-9]+.[0-9]+.[0-9]+" QWT_VERSION ${QWT_STRING_VERSION})
string(COMPARE LESS ${QWT_VERSION} "5.2.0" QWT_WRONG_VERSION)
string(COMPARE GREATER ${QWT_VERSION} "6.1.2" QWT_WRONG_VERSION)