diff options
author | Alexander Neundorf <neundorf@kde.org> | 2010-01-18 18:38:38 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2010-01-18 18:38:38 (GMT) |
commit | 1833961ce5a5e058d0936645a3501a9e8acdc341 (patch) | |
tree | d70e5e01699e5d8733121b20a5e67b33345ea302 /Modules/FindQt4.cmake | |
parent | a17e32199f637ec43c146252e7f8fef98bc3509d (diff) | |
download | CMake-1833961ce5a5e058d0936645a3501a9e8acdc341.zip CMake-1833961ce5a5e058d0936645a3501a9e8acdc341.tar.gz CMake-1833961ce5a5e058d0936645a3501a9e8acdc341.tar.bz2 |
some tweaks as suggested by Brad (no functional changes)
-set the type of the IMPORTED libraries to UNKNOWN, this way also on Windows
only the "LOCATION" property has to be set
-the if() around the SET(QT_${basename}_FOUND 1) was useless (always true)
-the mapping of the configuration types DEBUG and PROFILE did not belong here
Alex
Diffstat (limited to 'Modules/FindQt4.cmake')
-rw-r--r-- | Modules/FindQt4.cmake | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 7c7f573..4813669 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -842,34 +842,22 @@ IF (QT4_QMAKE_FOUND) # here, this would lead to the imported Qt4-library targets not being resolved by cmake anymore. IF (QT_${basename}_LIBRARY_RELEASE OR QT_${basename}_LIBRARY_DEBUG) IF(NOT TARGET Qt4ImportedTarget__${basename}) - ADD_LIBRARY(Qt4ImportedTarget__${basename} SHARED IMPORTED ) - - IF(WIN32) - SET(_QT4_LIBRARY_PROPERTY_NAME IMPLIB) - ELSE(WIN32) - SET(_QT4_LIBRARY_PROPERTY_NAME LOCATION) - ENDIF(WIN32) - + ADD_LIBRARY(Qt4ImportedTarget__${basename} UNKNOWN IMPORTED ) IF (QT_${basename}_LIBRARY_RELEASE) SET_PROPERTY(TARGET Qt4ImportedTarget__${basename} APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) - SET_PROPERTY(TARGET Qt4ImportedTarget__${basename} PROPERTY IMPORTED_${_QT4_LIBRARY_PROPERTY_NAME}_RELEASE "${QT_${basename}_LIBRARY_RELEASE}" ) + SET_PROPERTY(TARGET Qt4ImportedTarget__${basename} PROPERTY IMPORTED_LOCATION_RELEASE "${QT_${basename}_LIBRARY_RELEASE}" ) ENDIF (QT_${basename}_LIBRARY_RELEASE) IF (QT_${basename}_LIBRARY_DEBUG) SET_PROPERTY(TARGET Qt4ImportedTarget__${basename} APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) - SET_PROPERTY(TARGET Qt4ImportedTarget__${basename} PROPERTY IMPORTED_${_QT4_LIBRARY_PROPERTY_NAME}_DEBUG "${QT_${basename}_LIBRARY_DEBUG}" ) - - SET_PROPERTY(TARGET Qt4ImportedTarget__${basename} PROPERTY MAP_IMPORTED_CONFIG_PROFILE DEBUG) - SET_PROPERTY(TARGET Qt4ImportedTarget__${basename} PROPERTY MAP_IMPORTED_CONFIG_DEBUGFULL DEBUG) + SET_PROPERTY(TARGET Qt4ImportedTarget__${basename} PROPERTY IMPORTED_LOCATION_DEBUG "${QT_${basename}_LIBRARY_DEBUG}" ) ENDIF (QT_${basename}_LIBRARY_DEBUG) SET(QT_${basename}_LIBRARY Qt4ImportedTarget__${basename} ) SET(QT_${basename}_LIBRARIES Qt4ImportedTarget__${basename} ) - IF (QT_${basename}_LIBRARY) - SET(QT_${basename}_FOUND 1) - ENDIF (QT_${basename}_LIBRARY) + SET(QT_${basename}_FOUND 1) ENDIF(NOT TARGET Qt4ImportedTarget__${basename}) ENDIF (QT_${basename}_LIBRARY_RELEASE OR QT_${basename}_LIBRARY_DEBUG) |