Skip to content

Commit

Permalink
Merge pull request #174 from triplef/patch-1
Browse files Browse the repository at this point in the history
Improve Windows link library dependency
  • Loading branch information
itay-grudev authored Sep 17, 2023
2 parents 14e9d14 + 0d0666f commit d815ce3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:
with:
version: ${{ matrix.qt_version }}

- name: Setup MSVC environment for QMake
uses: ilammy/msvc-dev-cmd@v1

- name: Build library with CMake
run: |
cmake . ${{ matrix.additional_arguments }}
Expand Down Expand Up @@ -83,9 +86,6 @@ jobs:
cmake . ${{ matrix.additional_arguments }}
cmake --build .
- name: Setup MSVC environment for QMake
uses: ilammy/msvc-dev-cmd@v1

- name: Build basic example with QMake
working-directory: examples/basic/
run: |
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.4.1

* Improved Windows advapi32 link library dependency. - _Frederik Seiffert_

## 3.4.0

* Provide API for blocking sendMessage. - _Christoph Cullmann_
Expand Down
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ endif()
target_link_libraries(${PROJECT_NAME} PUBLIC ${QT_LIBRARIES})

if(WIN32)
target_link_libraries(${PROJECT_NAME} PRIVATE advapi32)
find_library(advapi32_LIBRARY advapi32 REQUIRED)
mark_as_advanced(advapi32_LIBRARY)
target_link_libraries(${PROJECT_NAME} PRIVATE ${advapi32_LIBRARY})
endif()

target_compile_definitions(${PROJECT_NAME} PUBLIC QAPPLICATION_CLASS=${QAPPLICATION_CLASS})
Expand Down

0 comments on commit d815ce3

Please sign in to comment.