Skip to content

Commit

Permalink
Tentative fix issue with qt5 uic and moc
Browse files Browse the repository at this point in the history
Signed-off-by: Cédrik Fuoco <[email protected]>
  • Loading branch information
cedrik-fuoco-adsk committed Oct 21, 2024
1 parent a48a792 commit d145cee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmake/dependencies/qt5.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ FIND_PACKAGE(
REQUIRED
)

SET(QT_MOC_EXECUTABLE "${Qt5Core_MOC_EXECUTABLE}" CACHE STRING "Qt MOC executable")
SET(QT_UIC_EXECUTABLE "${Qt5Widgets_UIC_EXECUTABLE}" CACHE STRING "Qt UIC executable")
get_target_property(MOC_EXECUTABLE Qt5::moc IMPORTED_LOCATION)
get_target_property(UIC_EXECUTABLE Qt5::uic IMPORTED_LOCATION)

SET(QT_MOC_EXECUTABLE "${MOC_EXECUTABLE}" CACHE STRING "Qt MOC executable")
SET(QT_UIC_EXECUTABLE "${UIC_EXECUTABLE}" CACHE STRING "Qt UIC executable")

SET(_qt_copy_message
"Copying Qt into ${RV_STAGE_ROOT_DIR}"
Expand Down

0 comments on commit d145cee

Please sign in to comment.