Skip to content

Commit

Permalink
Update FindWDK.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 committed Oct 30, 2023
1 parent 86f7be1 commit 3d2241c
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions cmake/FindWDK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -175,24 +175,25 @@ function(wdk_add_driver _target)
endif()

target_link_libraries(${_target} PRIVATE
WDK::NTOSKRNL
WDK::HAL
WDK::WMILIB
WDK::FLTMGR
WDK::TDI
WDK::NETIO
WDK::NTSTRSAFE
WDK::AUX_KLIB
WDK::WDMSEC
WDK::WDM
WDK::LIBCNTPR
WDK::BUFFEROVERFLOWFASTFAILK
WDK::NTOSKRNL
WDK::HAL
WDK::WMILIB
WDK::FLTMGR
WDK::TDI
WDK::NETIO
WDK::NTSTRSAFE
WDK::AUX_KLIB
WDK::WDMSEC
WDK::WDM
WDK::LIBCNTPR
)

if(CMAKE_WIN64_DRIVER)
target_link_libraries(${_target} PRIVATE WDK::BUFFEROVERFLOWK)
elseif(CMAKE_ARM64_DRIVER)
target_link_libraries(${_target} PRIVATE WDK::BUFFEROVERFLOWFASTFAILK)
endif()

if(WDK_KMDF)
target_link_libraries(${_target} PRIVATE
"${WDK_ROOT}/Lib/wdf/kmdf/${WDK_PLATFORM}/${WDK_KMDF}/WdfDriverEntry.lib"
Expand Down

0 comments on commit 3d2241c

Please sign in to comment.