Skip to content

Commit

Permalink
Fix qt5_wrap_ui() macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Dec 4, 2016
1 parent 96cc0de commit 7e20d46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widgets/Qt5WidgetsMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ function(QT5_WRAP_UI outfiles )
get_filename_component(outfile ${it} NAME_WE)
get_filename_component(infile ${it} ABSOLUTE)
set(outfile ${CMAKE_CURRENT_BINARY_DIR}/ui_${outfile}.h)
get_target_property(UIC_LOC ${Qt5Widgets_UIC_EXECUTABLE} IMPORTED_LOCATION)
add_custom_command(OUTPUT ${outfile}
COMMAND ${Qt5Widgets_UIC_EXECUTABLE}
COMMAND ${UIC_LOC}
ARGS ${ui_options} -o ${outfile} ${infile}
MAIN_DEPENDENCY ${infile} VERBATIM)
list(APPEND ${outfiles} ${outfile})
Expand Down

0 comments on commit 7e20d46

Please sign in to comment.