From: ageay Date: Thu, 20 Sep 2012 14:41:15 +0000 (+0000) Subject: Correct error in QWT detection. X-Git-Tag: V6_6_0a1~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cec4aacff95ae04d292d16646809b8d4dedbc1af;p=modules%2Fgui.git Correct error in QWT detection. --- diff --git a/adm_local/cmake_files/FindQWT.cmake b/adm_local/cmake_files/FindQWT.cmake index b21e31743..ba089e828 100644 --- a/adm_local/cmake_files/FindQWT.cmake +++ b/adm_local/cmake_files/FindQWT.cmake @@ -17,7 +17,7 @@ # 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) @@ -37,5 +37,5 @@ ELSE(CMAKE_BUILD_TYPE STREQUAL Debug) 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)