Skip to content
Snippets Groups Projects
Commit 58284d31 authored by Julien Malik's avatar Julien Malik
Browse files

COMP: fix detection of qwt version (on precise QWT_MAJOR_VERSION is '6-svn'

parent e0e73c8f
No related branches found
No related tags found
No related merge requests found
......@@ -68,17 +68,13 @@ endif( QT_FOUND )
#----------------------------------------------------------------------------
# Qwt
find_package(Qwt REQUIRED)
if(QWT_FOUND)
# message( ${QWT_LIBRARIES} )
if(QWT_MAJOR_VERSION GREATER 6)
message(FATAL_ERROR "Only Qwt 5 is supported. Found version ${QWT_VERSION_STRING}")
endif()
if(WIN32)
add_definitions(-DQWT_DLL)
endif(WIN32)
else(QWT_FOUND)
message(FATAL_ERROR "Qwt not found.")
endif(QWT_FOUND)
if(NOT QWT_MAJOR_VERSION EQUAL 5)
message(FATAL_ERROR "Only Qwt 5 is supported. Found version ${QWT_VERSION_STRING}")
endif()
if(WIN32)
add_definitions(-DQWT_DLL)
endif(WIN32)
#----------------------------------------------------------------------------
# Include OTB CMake modules path.
......
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