Skip to content

Commit 2413b67

Browse files
committed
BUG: Fix Designer and WebEngineProcess install rule on macOS
This commit fixes a regression introduced in r27709 (BUG: Fix macOS packaging of Qt designer) ensuring "qt_root_dir" variable is set. git-svn-id: http://svn.slicer.org/Slicer4/trunk@27712 3bd1e089-480b-0410-8dfb-8563597acbee
1 parent 29b1c9a commit 2413b67

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMake/SlicerCPack.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ else()
181181
endif()
182182
set(VTK_LIBRARY_DIRS "${VTK_DIR}/lib")
183183

184+
# Get Qt root directory
185+
set(qt_root_dir "")
186+
if(Slicer_REQUIRED_QT_VERSION VERSION_GREATER "4")
187+
get_property(_filepath TARGET "Qt5::Core" PROPERTY LOCATION_RELEASE)
188+
get_filename_component(_dir ${_filepath} PATH)
189+
set(qt_root_dir "${_dir}/..")
190+
endif()
191+
184192
#------------------------------------------------------------------------------
185193
# <ExtensionName>_FIXUP_BUNDLE_LIBRARY_DIRECTORIES
186194
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)