Skip to content
Snippets Groups Projects
Commit a14c3da0 authored by Stéphane Albert's avatar Stéphane Albert
Browse files

Upgraded FindQwt to search for v-6 instead of v-5.

parent 2a117240
No related branches found
No related tags found
No related merge requests found
......@@ -36,15 +36,15 @@
#=============================================================================
# Copyright 2010-2013, Julien Schueller
# All rights reserved.
#
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
......@@ -58,15 +58,14 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# The views and conclusions contained in the software and documentation are those
# of the authors and should not be interpreted as representing official policies,
# of the authors and should not be interpreted as representing official policies,
# either expressed or implied, of the FreeBSD Project.
#=============================================================================
find_path ( QWT_INCLUDE_DIR
NAMES qwt_plot.h
HINTS ${QT_INCLUDE_DIR}
PATH_SUFFIXES qwt qwt-qt3 qwt-qt4 qwt-qt5
PATH_SUFFIXES qwt
)
set ( QWT_INCLUDE_DIRS ${QWT_INCLUDE_DIR} )
......@@ -100,7 +99,7 @@ endif ()
find_library ( QWT_LIBRARY
NAMES qwt qwt-qt3 qwt-qt4 qwt-qt5 qwt${QWT_MAJOR_VERSION}
NAMES qwt qwt${QWT_MAJOR_VERSION}
HINTS ${QT_LIBRARY_DIR}
)
......@@ -126,7 +125,7 @@ endif ()
mark_as_advanced (
QWT_LIBRARY
QWT_LIBRARY
QWT_LIBRARIES
QWT_INCLUDE_DIR
QWT_INCLUDE_DIRS
......
......@@ -20,8 +20,8 @@
find_package(Qwt REQUIRED)
if(NOT QWT_MAJOR_VERSION EQUAL 5)
message(FATAL_ERROR "Only Qwt 5 is supported. Found version ${QWT_VERSION_STRING}")
if(NOT QWT_MAJOR_VERSION EQUAL 6)
message(FATAL_ERROR "Only Qwt 6 is supported. Found version '${QWT_VERSION_STRING}'")
endif()
if(WIN32)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment