]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Correct error in QWT detection.
authorageay <ageay>
Thu, 20 Sep 2012 14:41:15 +0000 (14:41 +0000)
committerageay <ageay>
Thu, 20 Sep 2012 14:41:15 +0000 (14:41 +0000)
adm_local/cmake_files/FindQWT.cmake

index b21e31743a5afe576aa23fcf3381e2b1e557d77a..ba089e82802d45c9247ddc616c602807804c0f29 100644 (file)
@@ -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)