summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-07-11 11:25:59 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-16 14:22:55 +0200
commit0518a569c76cd97dc0e97d6773ccc1f62924a4a1 (patch)
tree2118a3275bf9dba4629f3ad764b681a5aa58a435 /mkspecs
parentab2a6bbca9eccc4b2fde2e3af1fb1b9f6cee5cd3 (diff)
Fix the use of if() inside of macro().
if() seems to behave differently with macro parameters compared to variables set with set(). Change-Id: Ieb9544b8c3187579fd4cfe25e2c2afa3f349eba6 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/cmake/Qt5BasicConfig.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/cmake/Qt5BasicConfig.cmake.in b/mkspecs/cmake/Qt5BasicConfig.cmake.in
index 4014c9d733..212a186a41 100644
--- a/mkspecs/cmake/Qt5BasicConfig.cmake.in
+++ b/mkspecs/cmake/Qt5BasicConfig.cmake.in
@@ -126,7 +126,7 @@ macro(_populate_imported_target_properties Configuration LIB_LOCATION IMPLIB_LOC
\"IMPORTED_SONAME_${Configuration}\" "$${CMAKE_LIB_SONAME}"
!!ENDIF
)
- if(IMPLIB_LOCATION)
+ if(NOT \"${IMPLIB_LOCATION}\" STREQUAL \"\")
set_target_properties(Qt5::$${CMAKE_MODULE_NAME} PROPERTIES
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
\"IMPORTED_IMPLIB_${Configuration}\" \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$${CMAKE_LIB_DIR}${IMPLIB_LOCATION}\"