# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-SET(QWTHOME $ENV{QWTHOME})
+FILE(TO_CMAKE_PATH $ENV{QWTHOME} QWTHOME)
IF(NOT QWTHOME)
SET(QWTHOME /usr)
ENDIF(NOT QWTHOME)
FIND_LIBRARY(QWT_LIBS qwt5 ${QWTHOME}/lib)
ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
ELSE(WINDOWS)
-FIND_LIBRARY(QWT_LIBS qwt PATHS ${QWTHOME}/lib ${QWTHOME}/lib64)
+FIND_LIBRARY(QWT_LIBS qwt HINTS ${QWTHOME} PATH_SUFFIXES lib lib64)
ENDIF(WINDOWS)