Skip to content

Commit 934e8d3

Browse files
committed
fix Could not find advapi32_LIBRARY (#183)
1 parent 448a7b5 commit 934e8d3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ endif()
3838
target_link_libraries(${PROJECT_NAME} PUBLIC ${QT_LIBRARIES})
3939

4040
if(WIN32)
41-
find_library(advapi32_LIBRARY advapi32 REQUIRED)
42-
mark_as_advanced(advapi32_LIBRARY)
43-
target_link_libraries(${PROJECT_NAME} PRIVATE ${advapi32_LIBRARY})
41+
target_link_libraries(${PROJECT_NAME} PRIVATE advapi32)
4442
endif()
4543

4644
target_compile_definitions(${PROJECT_NAME} PUBLIC QAPPLICATION_CLASS=${QAPPLICATION_CLASS})

0 commit comments

Comments
 (0)