summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-08 16:52:54 -0600
committerTimothy Pearson <[email protected]>2011-11-08 16:52:54 -0600
commit0f34dbddf9837ce16427600394b9e9145edd0dc6 (patch)
tree7883eaaa832551dd8ae9b5edcdf4111a124fa342 /ConfigureChecks.cmake
parent6351ace5b1923516f683adcc27488af6b23f3785 (diff)
downloadtqtinterface-0f34dbddf9837ce16427600394b9e9145edd0dc6.tar.gz
tqtinterface-0f34dbddf9837ce16427600394b9e9145edd0dc6.zip
Fix tqtinterface on native TQt3
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 1ce5c9b..d5ff0eb 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -48,7 +48,11 @@ qt_message( " QT_PREFIX_DIR : ${QT_PREFIX_DIR}" )
# qt headers
if( NOT DEFINED QT_INCLUDE_DIR )
if( QT_PREFIX_DIR STREQUAL "/usr" )
- set( QT_INCLUDE_DIR "${QT_PREFIX_DIR}/include/qt${QT_VERSION}" )
+ if( EXISTS "${QT_PREFIX_DIR}/include/tqt${QT_VERSION}" )
+ set( QT_INCLUDE_DIR "${QT_PREFIX_DIR}/include/tqt${QT_VERSION}" )
+ else( )
+ set( QT_INCLUDE_DIR "${QT_PREFIX_DIR}/include/qt${QT_VERSION}" )
+ endif( )
else( )
set( QT_INCLUDE_DIR "${QT_PREFIX_DIR}/include" )
endif( )