Skip to content

Commit

Permalink
fix: add delayload node.exe flag on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 6, 2024
1 parent 0e675f2 commit 7b24bf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,6 @@ set_target_properties(addon PROPERTIES PREFIX "" SUFFIX ".node")

# Windows
if(WIN32)
set_property(TARGET addon PROPERTY LINK_FLAGS "-Xlinker /DELAYLOAD:NODE.EXE")
target_link_libraries(addon PRIVATE "ShLwApi.lib" "delayimp.lib")
endif()

0 comments on commit 7b24bf9

Please sign in to comment.