Skip to content

Commit

Permalink
Merge pull request #189 from SZinedine/master
Browse files Browse the repository at this point in the history
fix Could not find advapi32_LIBRARY
  • Loading branch information
itay-grudev authored Feb 4, 2024
2 parents 448a7b5 + 934e8d3 commit 494772e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ endif()
target_link_libraries(${PROJECT_NAME} PUBLIC ${QT_LIBRARIES})

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

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

0 comments on commit 494772e

Please sign in to comment.