mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2024-11-15 12:15:43 +08:00
fix Could not find advapi32_LIBRARY (#183)
This commit is contained in:
parent
448a7b525f
commit
934e8d34cd
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user