summaryrefslogtreecommitdiffstats
path: root/src/widgets/Qt5WidgetsConfigExtras.cmake.in
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2013-02-11 13:20:30 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-13 01:14:42 +0100
commit8943a5a28e0559bce2bd412453840f951f796fbf (patch)
treee197e63758f9d46de8c7a6a177de584cca7b4fc6 /src/widgets/Qt5WidgetsConfigExtras.cmake.in
parent640374d052eb3f49090ce0a7553dd90a4783950a (diff)
Don't calculate the install prefix again in the extra cmake files.
The parent file has already set a variable for it. Change-Id: I90ddda355a580f44ea7e1e44cc7df717fa0a8b7b Reviewed-by: Alexander Neundorf <neundorf@kde.org> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/widgets/Qt5WidgetsConfigExtras.cmake.in')
-rw-r--r--src/widgets/Qt5WidgetsConfigExtras.cmake.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/widgets/Qt5WidgetsConfigExtras.cmake.in b/src/widgets/Qt5WidgetsConfigExtras.cmake.in
index 27f9c2e5a6..d9abb45843 100644
--- a/src/widgets/Qt5WidgetsConfigExtras.cmake.in
+++ b/src/widgets/Qt5WidgetsConfigExtras.cmake.in
@@ -1,12 +1,10 @@
-get_filename_component(_qt5_widgets_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
-
if (NOT TARGET Qt5::uic)
add_executable(Qt5::uic IMPORTED)
set_target_properties(Qt5::uic PROPERTIES
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
- IMPORTED_LOCATION \"${_qt5_widgets_install_prefix}/$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\"
+ IMPORTED_LOCATION \"${_qt5Widgets_install_prefix}/$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\"
!!ELSE
IMPORTED_LOCATION \"$${CMAKE_BIN_DIR}uic$$CMAKE_BIN_SUFFIX\"
!!ENDIF