Skip to content

Commit 29b1c9a

Browse files
committed
BUG: Fix windows install rule for Qt designer
git-svn-id: http://svn.slicer.org/Slicer4/trunk@27711 3bd1e089-480b-0410-8dfb-8563597acbee
1 parent 837f8d3 commit 29b1c9a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CMake/SlicerBlockInstallQt.cmake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ else()
5151
)
5252
endif()
5353

54-
if(UNIX)
54+
# Get root directory
55+
get_property(_filepath TARGET "Qt5::Core" PROPERTY LOCATION_RELEASE)
56+
get_filename_component(_dir ${_filepath} PATH)
57+
set(qt_root_dir "${_dir}/..")
5558

56-
# Get root directory
57-
get_property(_filepath TARGET "Qt5::Core" PROPERTY LOCATION_RELEASE)
58-
get_filename_component(_dir ${_filepath} PATH)
59-
set(qt_root_dir "${_dir}/..")
59+
if(UNIX)
6060

6161
find_package(Qt5 REQUIRED COMPONENTS
6262
DBus

0 commit comments

Comments
 (0)