Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/github-cxx-qt-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,8 @@ jobs:
# Ensure clippy and rustfmt is installed, they should come from github runner
#
# Note we still need rustfmt for the cxx-qt-gen tests
#
# TODO: Remove the `rustup default 1.77` selection.
# This is a workaround for Github Actions, which cannot currently compile CXX-Qt with Rust 1.78.
#
# See: https://github.com/KDAB/cxx-qt/issues/958
- name: "Install Rust toolchain"
run: rustup default 1.77 && rustup component add clippy rustfmt
run: rustup component add clippy rustfmt

- name: "Rust tools cache"
uses: actions/cache@v4
Expand Down
4 changes: 4 additions & 0 deletions examples/demo_threading/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ target_link_libraries(${APP_NAME}_lib INTERFACE
Qt::QuickControls2
)

if (MSVC)
add_link_options("/FORCE:MULTIPLE")
endif()

# Qt Graphical Effects imports changed in Qt 6 so provide proxies
if(Qt5_FOUND)
set(QML_COMPAT_RESOURCES qml/compat/compat_qt5.qrc)
Expand Down
4 changes: 4 additions & 0 deletions examples/qml_features/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ target_link_libraries(${APP_NAME}_lib INTERFACE
Qt::QuickControls2
)

if (MSVC)
add_link_options("/FORCE:MULTIPLE")
endif()

add_executable(${APP_NAME}
cpp/main.cpp
)
Expand Down
5 changes: 5 additions & 0 deletions examples/qml_minimal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ target_link_libraries(${APP_NAME}_lib INTERFACE
)
# ANCHOR_END: book_cmake_use_corrosion

if (MSVC)
add_link_options("/FORCE:MULTIPLE")
endif()


# ANCHOR: book_cmake_executable
# Define the executable with the C++ source
add_executable(${APP_NAME} cpp/main.cpp)
Expand Down