diff options
author | Ian Scott <ian.m.scott@stud.man.ac.uk> | 2002-09-13 09:39:42 (GMT) |
---|---|---|
committer | Ian Scott <ian.m.scott@stud.man.ac.uk> | 2002-09-13 09:39:42 (GMT) |
commit | cf10b0b4f657333ba7f81f5b874309f3ce83908a (patch) | |
tree | a7c1631786833942b2cc3b24a7f1aedd12c4102e /Modules/FindQt.cmake | |
parent | dcc71279c89f71652b51c04c7aeae407678aa597 (diff) | |
download | CMake-cf10b0b4f657333ba7f81f5b874309f3ce83908a.zip CMake-cf10b0b4f657333ba7f81f5b874309f3ce83908a.tar.gz CMake-cf10b0b4f657333ba7f81f5b874309f3ce83908a.tar.bz2 |
Need to use $ENV{} to access environment variables
Diffstat (limited to 'Modules/FindQt.cmake')
-rw-r--r-- | Modules/FindQt.cmake | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/Modules/FindQt.cmake b/Modules/FindQt.cmake index c2de77d..eb9061e 100644 --- a/Modules/FindQt.cmake +++ b/Modules/FindQt.cmake @@ -14,30 +14,31 @@ # QT_QT_LIBRARY, where to find the Qt library. # QT_QTMAIN_LIBRARY, where to find the qtmain library. This is only required by Qt3 on Windows. + + + IF (UNIX) FIND_PATH(QT_INCLUDE_DIR qt.h - ${QTDIR}/include + $ENV{QTDIR}/include /usr/local/qt/include /usr/local/include /usr/include ) FIND_LIBRARY(QT_QT_LIBRARY qt - ${QTDIR}/lib + $ENV{QTDIR}/lib /usr/local/qt/lib /usr/local/lib /usr/lib ) FIND_FILE(QT_MOC_EXECUTABLE moc - ${QTDIR}/bin - ${path} + $ENV{QTDIR}/bin ) FIND_FILE(QT_UIC_EXECUTABLE uic - ${QTDIR}/bin - ${path} + $ENV{QTDIR}/bin ) ENDIF (UNIX) @@ -47,23 +48,23 @@ IF (WIN32) # Assume that QTDIR has been set FIND_PATH(QT_INCLUDE_DIR qt.h - ${QTDIR}/include C:/Progra~1/qt/include) ) + $ENV{QTDIR}/include C:/Progra~1/qt/include) ) FIND_LIBRARY(QT_QT_LIBRARY qt - ${QTDIR}/lib C:/Progra~1/qt/lib ) + $ENV{QTDIR}/lib C:/Progra~1/qt/lib ) FIND_LIBRARY(QT_QTMAIN_LIBRARY qtmain - ${QTDIR}/lib C:/Progra~1/qt/lib + $ENV{QTDIR}/lib C:/Progra~1/qt/lib DOC "This Library is only needed by and included with Qt3 on MSWindows. It should be NOTFOUND, undefined or IGNORE otherwise." ) FIND_FILE(QT_MOC_EXECUTABLE moc.exe - ${QTDIR}/bin C:/Progra~1/qt/bin - ${path} ) + $ENV{QTDIR}/bin C:/Progra~1/qt/bin + ) FIND_FILE(QT_UIC_EXECUTABLE uic.exe - ${QTDIR}/bin C:/Progra~1/qt/bin - ${path} ) + $ENV{QTDIR}/bin C:/Progra~1/qt/bin + ) ENDIF (WIN32) @@ -102,5 +103,3 @@ IF(QT_INCLUDE_DIR) ENDIF(QT_QT_LIBRARY) ENDIF(QT_INCLUDE_DIR) - - |