Merge pull request #189 from SZinedine/master

fix Could not find advapi32_LIBRARY
This commit is contained in:
Itay Grudev 2024-02-04 20:44:39 +02:00 committed by GitHub
commit 494772e98c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,9 +38,7 @@ endif()
target_link_libraries(${PROJECT_NAME} PUBLIC ${QT_LIBRARIES}) target_link_libraries(${PROJECT_NAME} PUBLIC ${QT_LIBRARIES})
if(WIN32) if(WIN32)
find_library(advapi32_LIBRARY advapi32 REQUIRED) target_link_libraries(${PROJECT_NAME} PRIVATE advapi32)
mark_as_advanced(advapi32_LIBRARY)
target_link_libraries(${PROJECT_NAME} PRIVATE ${advapi32_LIBRARY})
endif() endif()
target_compile_definitions(${PROJECT_NAME} PUBLIC QAPPLICATION_CLASS=${QAPPLICATION_CLASS}) target_compile_definitions(${PROJECT_NAME} PUBLIC QAPPLICATION_CLASS=${QAPPLICATION_CLASS})